python pip下载东西总是很慢,可以采用国内的镜像源

阿里云  https://mirrors.aliyun.com/pypi/simple/

中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/

豆瓣(douban) https://pypi.douban.com/simple/

清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/

中国科学技术大学 https://pypi.mirrors.ustc.edu.cn/simple/


使用方法

pip install numpy -i  https://pypi.douban.com/simple/

但是每次下载需要自己带后缀,加速,也很麻烦,

如果用的是conda,可以在conda安装路径下找到python.exe这个路径,

建立一个名为pip.ini文件,里面输入

[global]
    index-url = https://pypi.doubanio.com/simple

python pip加速 永久教程

 

放在如下位置即可,保存即可

python pip加速 永久教程

 

相关文章:

  • 2021-08-26
  • 2022-12-23
  • 2022-12-23
  • 2022-01-09
  • 2021-12-25
  • 2021-09-27
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-20
  • 2022-03-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-15
  • 2022-01-17
相关资源
相似解决方案