首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >virtualenv中的pip获取ConnectTimeoutError

virtualenv中的pip获取ConnectTimeoutError
EN

Stack Overflow用户
提问于 2015-12-02 17:20:05
回答 1查看 1.8K关注 0票数 2

我目前正在尝试在python-3.4virtualenv中安装包,并且不断收到这些重试/TimeoutErrors。

代码语言:javascript
复制
(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/

不知道这是怎么回事。我没有使用代理(这似乎是其他有类似/相同错误经验的人的情况)。

EN

回答 1

Stack Overflow用户

发布于 2015-12-02 17:44:07

所以,我发现了这个问题。我不确定这是怎么发生的,但是有人在输入链中放了一行DROP all anywhere/anywhere iptables行。

我保证不是我干的,但是删除这行代码肯定解决了问题。现在来找出哪个员工认为这是个好主意。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/34038946

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档