hkgov

 

Python里的pip是官方自带的源,国内使用pip安装的时候十分缓慢,所以最好是更换成中国国内的源地址。

目前国内靠谱的 pip 镜像源有:

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

豆瓣: http://pypi.douban.com/simple/

阿里: http://mirrors.aliyun.com/pypi/simple/

建议使用清华的,豆瓣和阿里的好像是有些问题,有些包安装不上,不是很清楚什么原因。

 

设置方法:

 

 

 

 

 如果以上方法还是不可以的话

Windows下找到Python根目录下的pip文件夹,在文件夹内

新建一个文件pip.ini:

 

[global]  

timeout = 6000  

index-url = https://pypi.tuna.tsinghua.edu.cn/simple  

trusted-host = https://pypi.tuna.tsinghua.edu.cn  

 

分类:

技术点:

相关文章:

  • 2021-12-04
  • 2022-01-16
  • 2021-06-01
  • 2022-12-23
  • 2022-12-23
  • 2021-04-19
  • 2021-08-24
猜你喜欢
  • 2021-05-17
  • 2022-12-23
  • 2022-12-23
  • 2021-06-29
  • 2021-08-20
  • 2021-11-18
  • 2022-02-07
相关资源
相似解决方案