在安装ggplibggplib/doc at master · richemslie/ggplib · GitHub试图构建propnet时,在运行完以下指令:
virtualenv -p pypy bin/install/_pypy
. ./bin/install/_pypy/bin/activate
pip install twisted
出现了错误:
ERROR: Exception:
Traceback (most recent call last):
File "/root/code/ggplib/bin/install/_pypy/site-packages/pip/_internal/cli/base_command.py", line 223, in _main
status = self.run(options, args)
File "/root/code/ggplib/bin/install/_pypy/site-packages/pip/_internal/cli/req_command.py", line 180, in wrapper
return func(self, options, args)
File "/root/code/ggplib/bin/install/_pypy/site-packages/pip/_internal/commands/install.py", line 404, in run
pycompile=options.compile,
File "/root/code/ggplib/bin/install/_pypy/site-packages/pip/_internal/req/__init__.py", line 90, in install_given_reqs
pycompile=pycompile,
File "/root/code/ggplib/bin/install/_pypy/site-packages/pip/_internal/req/req_install.py", line 824, in install
requested=self.user_supplied,
File "/root/code/ggplib/bin/install/_pypy/site-packages/pip/_internal/operations/install/wheel.py", line 845, in install_wheel
requested=requested,
File "/root/code/ggplib/bin/install/_pypy/site-packages/pip/_internal/operations/install/wheel.py", line 719, in _install_wheel
assert os.path.exists(pyc_path)
AssertionError
在多方查阅资料后,得知这个可能需要使用python3进行安装(这个虚拟环境是python2.7的),故运行以下指令后成功安装twist。
python3 -m pip install twisted