0
点赞
收藏
分享

微信扫一扫

(一招解决)windows中pip下载慢的问题

杰森wang 2022-04-19 阅读 81
python

对于Windows系统

在里面新建一个pip文件夹

pip文件夹里面新建一个pip.ini文件

pip.ini写入内容(以清华源为例):

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

其余镜像源同理:

清华: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/

参考网址:

【1】pip下载速度慢&如何使用国内源提高速度 - 1024搜-程序员专属的搜索引擎

【2】pip安装库太慢,一招教你解决! - 云+社区 - 腾讯云

举报

相关推荐

0 条评论