wi10 修改 pip源

使用国内源

  • 全局
  • win + R
  • 输入 %APPDATA% 回车
  • 新建 pip/pip.ini
  • 写入如下内容
[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 config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
posted @ 2022-11-08 21:30  vx_guanchaoguo0  阅读(39)  评论(0)    收藏  举报