概述
问题描述
在安装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
最后
以上就是外向哑铃为你收集整理的pip install twisted报错assert os.path.exists(pyc_path)AssertionError 解决方案问题描述解决方案 的全部内容,希望文章能够帮你解决pip install twisted报错assert os.path.exists(pyc_path)AssertionError 解决方案问题描述解决方案 所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复