Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(, '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( , '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( , '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( , 'Connection to pypi.python.org timed out. (connect timeout=15)')': /simple/pymongo/
pip源配置文件可以放置的位置:
/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版本检查,排除每次都报最新的piptimeout = 120