windows10下pip安装速度慢的解决办法
pip修改源
我们这里使用的镜像源是清华大学的镜像源,使用方法有两种,第一种是临时使用:
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple some-package
第二种是将清华的镜像源设置为默认的镜像源:
pip install pip -U
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
先将pip进行升级,然后配置。
到这里就算配置好了,在后面使用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