Linux环境

在~/.pip/pip.conf文件中添加或修改

[global]  
index-url = http://mirrors.aliyun.com/pypi/simple/

[install]  
trusted-host=mirrors.aliyun.com

Windows环境

在C:\Users\登录用户名称下新建pip文件夹,新建pip.ini文件

[global]  
index-url = http://mirrors.aliyun.com/pypi/simple/

[install]  
trusted-host=mirrors.aliyun.com

友情提示

同步频率为每天一次,每天凌晨2:00-4:00为镜像的同步时间
若使用阿里云服务器,将源的域名从mirrors.aliyun.com改为mirrors.aliyuncs.com,不占用公网流量。
如果需要下载ISO镜像,请直接使用Chrome、Firefox浏览器下载,勿使用P2P下载工具。

相关文章:

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