路径C:\Users\appleyuchi\pip


新建文件pip.ini

内容为:

[global]
trusted-global=pypi.douban.com
index-url = https://pypi.douban.com/simple
[install]
trusted-host = pypi.doubanio.com



如果是在linux下面,那么

cd ~
mkdir .pip

cd .pip

然后新建文件pip.conf,然后写入

[global]
trusted-host=mirrors.douban.com
index-url=https://pypi.douban.com/simple/

在南方的话,豆瓣的源比阿里的源快一些。

然后pycharm的地方也要改好才行:

修改pip的源repository

经过自己验证可用


相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-23
  • 2021-12-02
  • 2021-11-12
  • 2022-01-13
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-29
  • 2022-12-23
  • 2022-12-23
  • 2021-12-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案