python下载第三方安装包速度过慢或超时的问题

pip安装第三方包死活就是安装不上,总是说出错,其实就是说连接超时,下载不了安装包,经过多方百度,找到了办法
如下:

阿里云 http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
豆瓣(douban) http://pypi.douban.com/simple/
清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/
中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/

最终的解决办法:pip install package -i http://pypi.douban.com/simple --trusted-host pypi.douban.com(其中的package是你需要下载的,根据自己需求自行更改)
当其中一个源下载有问题的时候,自行替换成为其他元

你可能感兴趣的:(心得小记)