pip win 配置文件遇到的问题

Configuration file contains invalid cp936 characters in C:\Users\user\pip\pip.ini.

 报错

[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host = https://pypi.tuna.tsinghua.edu.cn
proxy     = http://user:pwd@ip:port

disable-pip-version-check = true

 pip.ini 之中有注释,把注释删除就可以了

上一篇:Connection to pypi.python. org timed out解决方案


下一篇:Python配置镜像源的三种方法