Win10 配置 Python 默认镜像源

Win10 配置 Python 默认镜像源

原文:https://blog.csdn.net/yaoqiwaimai/article/details/57084997

用notepad++创建pip.ini文件,保存位置为%USERPROFILE%\pip\pip.ini.
%USERPROFILE%具体指的是什么目录,可以cmd命令行中输入set,查看所有系统变量,找到USERPROFILE, 我的为:C:\Users\Computer-huangbiao
在这里插入图片描述
pip.ini文件:在这里插入图片描述
在这里插入图片描述

index-url 为清华镜像站链接,当然你也可以配置其他的镜像站了,没很大的区别哦:

  1. 中国科学技术大学 : https://pypi.mirrors.ustc.edu.cn/simple
  2. 清华:https://pypi.tuna.tsinghua.edu.cn/simple
  3. 豆瓣:http://pypi.douban.com/simple/
  4. 华中理工大学 : http://pypi.hustunique.com/simple
  5. 山东理工大学 : http://pypi.sdutlinux.org/simple

猜你喜欢

转载自blog.csdn.net/qq_39022311/article/details/83241701