pip 换为清华源

在文件夹 C:\Users\你的用户名\pip\ 下创建 pip.ini,若没有 pip 文件夹则要自行创建。

编辑 pip.ini 内容如下:

1
2
3
4
5
6
[global]
index-url=https://pypi.tuna.tsinghua.edu.cn/simple/
[install]
trusted-host=pypi.tuna.tsinghua.edu.cn
disable-pip-version-check=true
timeout = 6000

pip 换为清华源
https://roachlin.github.io/2021-01-04-pip-source/
作者
RoachLin
发布于
2021年1月4日
许可协议