pip设置国内源,提升下载速率。
pip国内的一些比较好用的镜像源
阿里云 http://mirrors.aliyun.com/pypi/simple/ 豆瓣(douban) http://pypi.douban.com/simple/ 清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/ 中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/
修改pip源
修改 ~/.pip/pip.conf (如果没有就创建,需要先创建.pip的隐藏目录)
[global] index-url = https://pypi.tuna.tsinghua.edu.cn/simple
即可。
参考
https://blog.csdn.net/xuezhangjun0121/article/details/81664260