When i run the command on terminal 'sudo pip install scipy'(infact with any python package like numpy,pandas..) on OS X yosemite, I get the following error.
当我在OS X yosemite上运行终端“sudo pip install scipy”(实际上是与任何python包(比如numpy,panda ..))上的命令时,我得到了以下错误。
Collecting scipy
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x10c566ed0>: Failed to establish a new connection: [Errno 61] Connection refused',)': /simple/scipy/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x10c599050>: Failed to establish a new connection: [Errno 61] Connection refused',)': /simple/scipy/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x10c599190>: Failed to establish a new connection: [Errno 61] Connection refused',)': /simple/scipy/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x10c5992d0>: Failed to establish a new connection: [Errno 61] Connection refused',)': /simple/scipy/
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x10c599410>: Failed to establish a new connection: [Errno 61] Connection refused',)': /simple/scipy/
Could not find a version that satisfies the requirement scipy (from versions: )
No matching distribution found for scipy
My 'git clone ..' works perfectly fine(I installed home brew). I am behind a proxy and I have done aliasing.
我的“git clone . .“效果非常好(我安装了自制啤酒)。”我在代理的后面,我已经做了混叠。
1 个解决方案
#1
2
Specify proxy for pip specially,
专门为pip指定代理,
sudo pip --proxy http://user:pass@proxy.server:port install packagename
sudo pip -代理http://user pass@proxy。服务器:端口安装packagename
pip doesn't use the http_proxy variable,set in OS X terminal.
pip不使用在OS X终端中设置的http_proxy变量。
#1
2
Specify proxy for pip specially,
专门为pip指定代理,
sudo pip --proxy http://user:pass@proxy.server:port install packagename
sudo pip -代理http://user pass@proxy。服务器:端口安装packagename
pip doesn't use the http_proxy variable,set in OS X terminal.
pip不使用在OS X终端中设置的http_proxy变量。