pip不更换源的话,速度可能非常慢。这里将pip源更换为阿里云源。

1、修改文件~/.pip/pip.conf(没有该文件则创建一个)

$ sudo vim ~/.pip/pip.conf

2、写入以下内容保存即可

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

 

相关文章:

  • 2022-02-15
  • 2021-11-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-16
猜你喜欢
  • 2021-07-27
  • 2022-12-23
  • 2022-12-23
  • 2021-08-14
  • 2022-12-23
  • 2021-06-19
  • 2021-09-26
相关资源
相似解决方案