The repository located at pypi.tuna.tsinghua.edu.cn is not a trusted or secure host 的解决办法

我想安装pyqt5,出现了如下报错

这个时候一般是源地址出了问题,将源改为https就可以了

操作如下:

1.在运行窗口或资源管理器中输入%APPDATA%

 2.在右上角搜索pip文件夹

 3.打开pip文件夹,对pip.ini文件用打开记事本操作,修改里面的源,将

http://pypi.tuna.tsinghua.edu.cn/simple改为https://pypi.tuna.tsinghua.edu.cn/simple

就可以了

 

猜你喜欢

转载自blog.csdn.net/Wjeana/article/details/121276292