pip的一种报错

最近在使用pip镜像源下载东西时,报错。

报错信息

WARNING: The repository located at pypi.douban.com is not a trusted or secure host and is being ignored. If this repository is available via HTTPS we recommend you use HTTPS instead, otherwise you may silence this warning and allow it anyway with '--trusted-host pypi.douban.com'.
ERROR: Could not find a version that satisfies the requirement pyqt5 (from versions: none)
ERROR: No matching distribution found for pyqt5

解决措施

使用的源的访问方式改成https

修改后的常用的镜像源

阿里云https://mirrors.aliyun.com/pypi/simple/

豆瓣https://pypi.douban.com/simple/

中国科技大学https://pypi.mirrors.ustc.edu.cn/simple/

中科院https://pypi.mirrors.opencas.cn/simple/

清华大学https://pypi.tuna.tsinghua.edu.cn/simple/

测试命令

pip install pyqt5 -i https://pypi.douban.com/simple/

posted @ 2023-12-19 20:57  夜泽大大  阅读(209)  评论(0)    收藏  举报