使用window自带的文本编辑器编辑配置文件
pip config --editor C:\WINDOWS\system32\notepad.exe edit
内容如下
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
#proxy = http://XXXX.com:port
index-url是国内清华镜像源
proxy 代理,按照网络实际配置修改即可
pip版本:使用命令查询
pip -V