1. 在home/用户名/目录下创建.pip文件夹
  2. 然后cd .pip
  3. 创建pip.conf文件touch pip.conf
  4. 输入以下内容然后保存即可
    [global]
    timeout = 6000
    index-url = http://mirrors.aliyun.com/pypi/simple/
    trusted-host = mirrors.aliyun.com
    
  5. 上面是更换为阿里源,其他源也是一样,比如中科大就替换相应内容如下
    index-url=http://pypi.mirrors.ustc.edu.cn/simple/
    trusted-host =pypi.mirrors.ustc.edu.cn
    

相关文章:

  • 2021-07-19
  • 2021-12-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-18
猜你喜欢
  • 2022-12-23
  • 2021-05-27
  • 2021-11-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-29
相关资源
相似解决方案