一些国内的pip源:

阿里云 http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/ 
豆瓣(douban) http://pypi.douban.com/simple/ 
清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/
中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/

 

操作步骤

1. 在C盘中找到目录: C:\Users\用户名\AppData\Roaming

2. 查看在Roaming文件夹下新建pip文件夹(如果已经存在就跳过此步)

3. 在pip文件夹中创建一个pip.ini文件

4. 使用记事本的方式打开pip.ini文件,写入:

[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host=mirrors.aliyun.com

5. 完成

相关文章:

  • 2022-02-23
  • 2022-12-23
  • 2021-08-26
  • 2022-12-23
  • 2022-12-23
  • 2021-07-18
  • 2021-06-01
  • 2021-08-28
猜你喜欢
  • 2021-10-12
  • 2022-01-17
  • 2022-12-23
  • 2021-06-21
  • 2022-12-23
  • 2021-12-08
相关资源
相似解决方案