针对Windows系统设置方式

进入C:\Users\用户名目录下,新建pip文件夹\pip.ini:

将下列内容复制到pip.ini文件中保存即可:

[global]

index-url = http://pypi.douban.com/simple
trusted-host = pypi.douban.com

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

timeout = 10000

pycharm中设置

pip install永久设置镜像源

pip install永久设置镜像源

 pip install永久设置镜像源

 

相关文章:

  • 2021-06-21
  • 2022-12-23
  • 2021-09-24
  • 2021-07-15
  • 2021-06-02
  • 2022-12-23
猜你喜欢
  • 2021-08-26
  • 2021-05-03
  • 2022-12-23
  • 2022-01-09
  • 2020-06-18
  • 2021-06-12
  • 2022-12-23
相关资源
相似解决方案