virtualenv中的pip获取ConnectTimeoutError

时间:2015-12-02 09:20:05

标签: python pip python-3.4

我当前正试图在python-3.4 virtualenv中安装软件包,并且我不断收到这些重试/超时错误。

(backend)root@XXXX:/var/virtualenvs# pip3 install -r backend-freeze.txt
Collecting cassandra-driver==2.7.2 (from -r backend-freeze.txt (line 1))
  Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f4d7faf94a8>, 'Connection to pypi.python.org timed out. (connect timeout=15)')': /simple/cassandra-driver/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f4d7faf9588>, 'Connection to pypi.python.org timed out. (connect timeout=15)')': /simple/cassandra-driver/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f4d7faf9668>, 'Connection to pypi.python.org timed out. (connect timeout=15)')': /simple/cassandra-driver/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f4d7faf9748>, 'Connection to pypi.python.org timed out. (connect timeout=15)')': /simple/cassandra-driver/

不确定这里发生了什么。我没有使用代理服务(对于那些已经表达了类似/相同错误经验的人来说,似乎就是这种情况)。

1 个答案:

答案 0 :(得分:0)

所以,我发现了这个问题。我不确定这是怎么发生的,但有人在INPUT链中的任何地方/任何地方放置了DROP。

我保证不是我,但删除该行肯定解决了这个问题。现在要弄清楚哪个员工认为这是一个好主意。