用途:pip更换为国内源,可以大大的提高安装成功率和速度。

Windows更换pip/pip3源

  1. 打开目录:%appdata%
  2. 新增pip文件夹,新建pip.ini文件
  3. 给pip.ini添加内容
[global]
timeout = 6000
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
trusted-host = pypi.tuna.tsinghua.edu.cn

这个更换的是清华的源,清华的源5分钟同步官网一次,建议使用。

注意:不管你用的是pip3还是pip,方法都是一样的,都是创建pip文件夹。

国内源列表

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

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

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

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

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

相关文章:

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