pip3 install -r requirements.txt - 命令" python setup.py egg_info"在/ private / tmp / pip-build-a0nd7us1 / post /

时间:2017-05-29 18:17:48

标签: python python-3.x pip virtualenv

当我尝试pip3 install -r requirements.txt时,我收到错误:

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

已解决:我只留下必要的依赖项,一切正常。

2 个答案:

答案 0 :(得分:0)

创建你的venv后,尝试:

(yourVEnv)$ curl https://bootstrap.pypa.io/get-pip.py |蟒

然后停用然后重新激活您的虚拟环境。这样做或pip不能正常工作。

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

或用

检查
(yourVEnv)$pip -V

然后你

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

不要忘记添加要求的完整路径.txt

答案 1 :(得分:0)

由于分发已合并回setuptools,现在建议安装/升级setuptools:

        while (true)
        {
            Socket icmpListener = new Socket(AddressFamily.InterNetwork, SocketType.Raw, ProtocolType.Icmp);
            icmpListener.Bind(new IPEndPoint(IPAddress.Parse("564.89.556.5"), 0));
            icmpListener.IOControl(IOControlCode.ReceiveAll, new byte[] { 1, 0, 0, 0 }, new byte[] { 1, 0, 0, 0 });
            byte[] buffer = new byte[4096];
            EndPoint remoteEndPoint = new IPEndPoint(IPAddress.Any, 0);
            int bytesRead = icmpListener.ReceiveFrom(buffer, ref remoteEndPoint);
            string text = "ICMPListener received " + bytesRead + " from " + remoteEndPoint;
            Console.WriteLine(text);                
        }