Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by ‘ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7ffb0d9c35d0>, ‘Connection to pypi.python.org timed out. (connect timeout=15)‘)‘: /simple/pymongo/ Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by ‘ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7ffb0d9c3790>, ‘Connection to pypi.python.org timed out. (connect timeout=15)‘)‘: /simple/pymongo/ Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by ‘ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7ffb0d9c32d0>, ‘Connection to pypi.python.org timed out. (connect timeout=15)‘)‘: /simple/pymongo/ Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by ‘ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7ffb0d9c3f10>, ‘Connection to pypi.python.org timed out. (connect timeout=15)‘)‘: /simple/pymongo/
pip源配置文件可以放置的位置:
Linux/Unix:
/etc/pip.conf
~/.pip/pip.conf
~/.config/pip/pip.conf
Mac OSX:
~/Library/Application Support/pip/pip.conf
~/.pip/pip.conf
/Library/Application Support/pip/pip.conf
Windows:
%APPDATA%\pip\pip.ini
%HOME%\pip\pip.ini
C:\Documents and Settings\All Users\Application Data\PyPA\pip\pip.conf (Windows XP)
C:\ProgramData\PyPA\pip\pip.conf (Windows 7及以后)
pip配置的主要一些配置:
可以配置如下:
[global] index-url = http://pypi.douban.com/simple #豆瓣源,可以换成其他的源 trusted-host = pypi.douban.com #添加豆瓣源为可信主机,要不然可能报错 disable-pip-version-check = true #取消pip版本检查,排除每次都报最新的pip timeout = 120