pip install xlrd
报告错误
Collecting xlrd
retrying(retry(total=4,connect=None,read=None,redirect=None,status=none ((afterconnectionbrokenby ' Nene )
retrying(retry(total=3,connect=None,read=None,redirect=None,status=none ((afterconnectionbrokenby ' Nene )
原因
找网上说明网速太慢了,或者被挂在墙上了。
解决
切换默认pip镜像源并使用国内镜像加速。
效果
lookinginindexes 33603358 pypi.douban.com/simple
Collecting xlrd
downloading http://pypi.douban io.com/packages/07/E6/e95 C4 EEC 6221 bfd 8528 bcc4ea 252 a 850 BFF cc4be 88 ebc 367 e23 a 1a 84 b/xllb
(100 (((((((((((((((() ) ) ) ) ) ) ) ) ) ) ) 652
installingcollectedpackages : xlrd
successfullyinstalledxlrd-1.1.0
其他镜像源文件
更改默认源配置
必须创建或修改配置文件。 通常创建。
linux上的文件位于~/.pip/pip.conf中,
[global]
index-URL=http://pypi.douban.com/simple
[install]
可信-主机=pypi.douban.com