自带下载地址为国外源下载速度时常在20KB以内切换为国内源直接满速!
国内源:
新版ubuntu要求使用https源,要注意。
清华:https://pypi.tuna.tsinghua.edu.cn/simple
阿里云:http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
华中理工大学:http://pypi.hustunique.com/
山东理工大学:http://pypi.sdutlinux.org/
豆瓣:http://pypi.douban.com/simple/
windows下在个人用户目录下
c:\users\[自己的电脑用户名]\
中新建文件夹 pip,再新建文件pip.ini ( ini后缀为配置文件类型 )
在ini文件中配置源地址
[global] index-url = https://pypi.tuna.tsinghua.edu.cn/simple [install] trusted-host=mirrors.aliyun.com
加粗部分可以自由更换源地址 (这里使用的是清华)
原文地址:http://www.mamicode.com/info-detail-2248277.html