'''
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x10258e250>, 'Connection to pypi.python.org timed out. (connect timeout=15)')': /simple/pyparsing/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x10258e4d0>, 'Connection to pypi.python.org timed out. (connect timeout=15)')': /simple/pyparsing/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x10258e3d0>, 'Connection to pypi.python.org timed out. (connect timeout=15)')': /simple/pyparsing/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x10258e9d0>, 'Connection to pypi.python.org timed out. (connect timeout=15)')': /simple/pyparsing/
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x10258e650>, 'Connection to pypi.python.org timed out. (connect timeout=15)')': /simple/pyparsing/
'''
如何安装旧版本的pip
1
Septembers 2015-06-24 17:06:54 +08:00 via Android
curl https://bootstrap.pypa.io/get-pip.py | python
|
2
Hodor OP |
3
Septembers 2015-06-24 17:10:29 +08:00 via Android
@Hodor 不需要
|
4
liupy525 2015-06-24 17:13:19 +08:00
这是连不上pypi.python.org吧 换个pypi的源就好了 比如v2ex的源 http://pypi.v2ex.com/simple
如果是Linux或Mac OS在 ~ 下新建 .pip 文件夹 新建pip.conf文件 把下面的内容写进去 ``` [global] index-url = http://pypi.v2ex.com/simple ``` |
5
liupy525 2015-06-24 17:14:19 +08:00
不知道怎么贴代码。。。没有那两行 ``` 哈
|
6
Starduster 2015-06-24 17:19:51 +08:00
支持 markdown
加个标签应该就可以 <code>test</code> |
7
Starduster 2015-06-24 17:20:30 +08:00
|
8
lilydjwg 2015-06-24 17:44:04 +08:00
|
9
gaotongfei 2015-06-24 18:04:01 +08:00 via iPhone
没遇到这情况,但是貌似是功夫网的问题吧。换源或者设置timeout试试?
|
10
onlyice 2015-06-24 18:07:45 +08:00
为何觉得是 pip 坏了呢?
Log 不看的么? |
12
onlyice 2015-06-24 18:28:58 +08:00
@liupy525
@lilydjwg 这两位是正解 pip 的错误日志里面描述的是连 pypi.python.org 超时,而这个网站上面存储了你要安装的 Python 包,连不上导致了 pip 安装失败。并不表示 pip 就坏了。 可以换一个国内的 pypi 镜像,推荐中科大的: https://lug.ustc.edu.cn/wiki/mirrors/help/pypi 食用方法: Windows:C:\Users\your_name\pip\pip.ini *nix, OSX: ~/.pip/pip.conf 把下面两行写到上面对应的文件中,pip 就会使用中科大的镜像了。 [global] index-url = https://pypi.mirrors.ustc.edu.cn/simple |
13
kslr 2015-06-24 21:24:14 +08:00 via Android
看日志是快速确定问题的最好办法
|
14
sailor41 2017-10-31 16:07:11 +08:00
我也遇到了这类问题,然而第二次输入 pip install virtualenv 就解决了,是网络连接问题?
|