ubuntu修改pip源
1.在home下创建.pip目录:mkdir ~/.pip

2.创建pip.conf文件: gedit ~/.pip/pip.conf

3. 在pip.conf文件添加如下内容(更换为清华大学镜像源):

[global]

index-url = https://pypi.tuna.tsinghua.edu.cn/simple

保存退出即可;

win10下的修改方法为:

pip install pip -U
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-02
  • 2021-09-08
  • 2022-12-23
  • 2021-12-15
相关资源
相似解决方案