[英]pip3 install -r requirements.txt - Command “python setup.py egg_info” failed with error code 1 in /private/tmp/pip-build-a0nd7us1/post/
When I try pip3 install -r requirements.txt
I get the error: 当我尝试pip3 install -r requirements.txt
出现错误:
Command "python setup.py egg_info" failed with error code 1 in /private/tmp/pip-build-a0nd7us1/post/
It seems to me that I have tried everything. 在我看来,我已经尝试了一切。 Any suggestions? 有什么建议么? I have Python 3.6.1 in virtualenv. 我在virtualenv中有Python 3.6.1。
This is my requirements.txt
file: 这是我的requirements.txt
文件:
appdirs==1.4.3
asn1crypto==0.22.0
base==1.0.4
cffi==1.10.0
cryptography==1.8.1
Django==1.11
django-cors-headers==2.0.2
djangorestframework==3.6.2
get==0.0.0
idna==2.5
inflection==0.3.1
Keras==2.0.4
modules==1.0.0
more-itertools==3.0.0
mysqlclient==1.3.10
ndg-httpsclient==0.4.2
numpy==1.12.1
packaging==16.8
pandas==0.19.2
post==0.0.0
props==0.0.2
protobuf==3.2.0
public==0.0.0
pyasn1==0.2.3
pycparser==2.17
pyOpenSSL==17.0.0
pyparsing==2.2.0
python-dateutil==2.6.0
pytz==2017.2
PyYAML==3.12
Quandl==3.1.0
query-string==0.0.0
request==0.0.0
requests==2.13.0
scipy==0.19.0
setupfiles==0.0.0
simplejson==3.10.0
six==1.10.0
tensorflow==1.1.0
Theano==0.9.0
virtualenv==15.1.0
Werkzeug==0.12.1
SOLVED: I left only the necessary dependencies and everything works fine. 已解决:我只留下必要的依赖项,一切正常。
After creating you venv, try to: 在创建你的venv之后,尝试:
(yourVEnv)$ curl https://bootstrap.pypa.io/get-pip.py | (yourVEnv)$ curl https://bootstrap.pypa.io/get-pip.py | python 蟒蛇
Then deactivate then reactivate your virtual environment. 然后停用然后重新激活您的虚拟环境。 Do this or pip won't work correctly. 这样做或pip将无法正常工作。
(yourVEnv)$ deactivate
$ source myvenv/bin/activate
(yourVEnv)$ which pip
or Check it with 或检查一下
(yourVEnv)$pip -V
then do you 那你呢
pip install -r /path/to/requirements.txt
Don't forget to add the full path to your requirements.txt 不要忘记添加您的requirements.txt的完整路径
由于分发已合并回setuptools,现在建议安装/升级setuptools:
[sudo] pip install --upgrade setuptools
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.