windows更改pip源

创建pip目录,新建 pip.ini文件,添加如下内容
*C:\Users"当前用户"\AppData\Roaming\pip*

[global]
timeout = 6000
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
trusted-host = pypi.tuna.tsinghua.edu.cn
posted @ 2022-10-08 22:29  91key  阅读(16)  评论(0)    收藏  举报