1. 创建pip文件夹

    mkdir ~/.pip

  2. 创建pip.conf文件

    touch pip.conf

  3. 编辑pip.conf

    vim pip.conf

  4. 添加以下代码(这里我用的是阿里云的镜像)

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

替换pip源可以解决国内访问Python源较慢问题

相关文章:

  • 2022-12-23
  • 2021-12-21
  • 2021-08-24
  • 2022-12-23
  • 2021-07-14
  • 2021-12-08
  • 2021-09-06
猜你喜欢
  • 2021-12-31
  • 2021-07-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-21
  • 2021-10-03
相关资源
相似解决方案