2017-05-29 73 views
1

当我尝试pip3 install -r requirements.txt我得到的错误:PIP3安装-r requirements.txt - 命令 “蟒蛇setup.py egg_info” 在/私营/ tmp目录/ PIP-集结a0nd7us1,错误代码1失败/后/

Command "python setup.py egg_info" failed with error code 1 in /private/tmp/pip-build-a0nd7us1/post/ 

在我看来,我已经尝试了一切。有什么建议么?我在virtualenv中有Python 3.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 

解决的:我只剩必要的依赖,一切工作正常。

+0

requirements.txt文件中有什么?你能把它放在追求之中吗? –

+0

我得到'它看起来像你的文章主要是代码;请添加一些更多细节.',我该如何避免这种情况? – wahtdbogh

+0

haha​​haha太棒了....当然...试着写一些你试过的步骤,在简历中,不是所有东西,然后添加requiremets.txt。如果你不能,添加一个链接到一个选择或什么 –

回答

0

创建你VENV后,尝试:

(yourVEnv)$卷曲https://bootstrap.pypa.io/get-pip.py | python

然后取消激活,然后重新激活您的虚拟环境。这样做或点子将无法正常工作。

(yourVEnv)$ deactivate 
$ source myvenv/bin/activate 
(yourVEnv)$ which pip 

(yourVEnv)$pip -V 

检查它,然后你

pip install -r /path/to/requirements.txt 

不要忘记的完整路径添加到您的requirements.txt

0

由于分配已合并回setuptools,现在推荐安装/升级setuptools代替:

[sudo] pip install --upgrade setuptools 
相关问题