Python pip下载模块太慢或者超时该怎么解决

其实这个问题我经常见到,大多数模块在pypl上维护,下载比较慢,有时还会超时,我这里的解决办法是使用代理:

具体的使用方法: pip install 模块名 --proxy=http://127.0.0.1:端口

其中的端口就是本机代理的端口。

希望会有所帮助

补充:

可以加一个国内的镜像源 ,https://pypi.tuna.tsinghua.edu.cn/simple 

pip install 模块名 -i https://pypi.tuna.tsinghua.edu.cn/simple

猜你喜欢

转载自blog.csdn.net/qq_37992974/article/details/104213163
今日推荐