当我尝试pip3 install -r requirements.txt时,我得到了错误:
Command "python setup.py egg_info" failed with error code 1 in /private/tmp/pip-build-a0nd7us1/post/在我看来,我什么都试过了。有什么建议吗?在virtualenv中有Python3.6.1。
这是我的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解决了:我只留下了必要的依赖项,一切都很好。
发布于 2017-05-29 18:38:01
在创建venv之后,尝试:
(yourVEnv)$ curl https://bootstrap.pypa.io/get-pip.py \ python
然后停用,然后重新激活您的虚拟环境。这样做,否则pip就不能正常工作。
(yourVEnv)$ deactivate
$ source myvenv/bin/activate
(yourVEnv)$ which pip或者用
(yourVEnv)$pip -V那你愿意吗
pip install -r /path/to/requirements.txt不要忘记将完整的路径添加到requirements.txt中
https://stackoverflow.com/questions/44248434
复制相似问题