转载自这个大哥的这篇博客
pip install 替换源
本来一般都是直接pip install numpy
但是有的时候真的超级慢,所以可以有如下的替换
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple numpy
几个常用的源
清华: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/
一劳永逸的方法,一下子直接改掉源(以豆瓣为例)
pip config set global.index-url http://pypi.douban.com/simple/