pip 提速方法:
一种是临时提速,一种是永久提速。
临时提速:
在 pip install 包名 后面加上 -i + 镜像地址,这样 pip 安装时即可成倍的提速了,不过有的镜像网站上没有所要安装的包,但大部分都有了。
国内主要镜像地址如下:
清华: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/
eg:
pip install 包名 -i https://pypi.douban.com