首页 > 其他 > 详细

pip安装错误,用镜像

时间:2018-01-04 13:39:15      阅读:248      评论:0      收藏:0      [点我收藏+]
  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

 

pip安装错误,用镜像

原文:https://www.cnblogs.com/cuzz/p/8192663.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!