pip安装包卡顿问题解决方案

2019-10-03  本文已影响0人  yoga_haha

一、问题

使用pip install安装包速度太慢,出现卡在安装画面不动的情况。

二、原因

pip默认安装源是:https://pypi.org/simple/pip/,所以会出现安装慢、卡的情况。

三、解决

更换国内的安装源

1. cmd命令行更换安装源

[global]
timeout = 6000
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
trusted-host = pypi.tuna.tsinghua.edu.cn

2. Pycharm更换安装源

注意第5步的刷新很重要,否则将导致更新源不生效

附:国内镜像源,实测阿里和清华的还不错,豆瓣没有测试过。

阿里: http://mirrors.aliyun.com/pypi/simple/
清华: https://pypi.tuna.tsinghua.edu.cn/simple
豆瓣: http://pypi.douban.com/simple/

部分图片引用链接(本图片未用作商业用途,如有侵权,请与本人联系,第一时间删除)

https://www.cnblogs.com/hkgov/p/7799078.html
https://blog.csdn.net/qq_35492650/article/details/100609056

上一篇下一篇

猜你喜欢

热点阅读