pip引发错误重试

时间:2015-11-05 00:55:36

标签: python-2.7 pip

我无法使用pip,每次尝试时我都会收到此错误,任何人都可以告诉我正在进行谢谢。

Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7fca90faf950>, 'Connection to 172.82.151.137 timed out. (connect timeout=15)')': /simple/pip/

1 个答案:

答案 0 :(得分:0)

此问题是由我设置为环境变量的代理引起的,如下所示

export http_proxy='172.82.151.137:8800'
export https_proxy='172.82.151.137:8800'

删除此解决了这个问题。