将pip的源换为国内的。
1.新建目录及文件~/.pip/pip.conf
2.内容为:
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host=mirrors.aliyun.com
本文介绍了一种简单的方法来配置pip使用国内的镜像源,通过更改pip的配置文件来指定清华大学或者阿里云的Python包镜像站点,从而提高下载速度。
将pip的源换为国内的。
1.新建目录及文件~/.pip/pip.conf
2.内容为:
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host=mirrors.aliyun.com
1537
312
1177
1660
1万+
304

被折叠的 条评论
为什么被折叠?