12月112016
pip安装python库总是下载timeout超时解决方案
方法一:
建个文件 ~/.pip/pip.conf, 内容如下
[global]
index-url = http://b.pypi.python.org/simple
[install]
use-mirrors = true
mirrors = http://b.pypi.python.org
http://pypi.python.org/mirrors
方法二:
添加—timeout参数
$ pip install xxx --timeout 6000
参考:
发表评论
木有头像就木JJ啦!还木有头像吗?点这里申请属于你的个性Gravatar头像吧!