参考文章:https://codeplayer.vip/p/j7tmc

[windows]

备份记录指令:(永久全局设置pypi国内镜像源地址)

1 pip config --global set  global.index-url https://mirrors.aliyun.com/pypi/simple/

 [linux]

在/root/下,mkdir .pip

在/root/.pip/目录下,touch pip.conf

编辑pip.conf

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

保存,退出,设置完毕。

相关文章:

  • 2021-11-12
  • 2022-02-20
  • 2022-12-23
  • 2021-09-25
猜你喜欢
  • 2022-12-23
  • 2021-09-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案