Python使用pip下载安装库文件的时候速度很慢的解决办法

把下载源换成国内的例如清华大学https://pypi.tuna.tsinghua.edu.cn/simple

  1. 在用户目录下创建pip文件夹C:\Users\xxx\pipPython使用pip安装库文件速度很慢
  2. 在pip目录下创建pip.ini文件
    Python使用pip安装库文件速度很慢
  3. 在pip.ini文件写入这段代码
    [global]
    index-url = https://pypi.tuna.tsinghua.edu.cn/simple
    [install]
    trusted-host=mirrors.aliyun.com

Python使用pip安装库文件速度很慢
完成!

相关文章:

  • 2021-04-26
  • 2021-05-20
  • 2021-06-20
  • 2022-03-09
  • 2021-12-16
  • 2021-08-31
  • 2022-01-20
猜你喜欢
  • 2021-12-26
  • 2021-07-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-29
  • 2021-09-27
相关资源
相似解决方案