解决ERROR: Could not find a version that satisfies the requirement pyQt5 (from versions: none)报错问题

 以下是解决pyQt5下载报错问题

1、按照我们正常的思路来说我们会使用管理员身份打开cmd输入:pip install pyQt5

在报错信息中我们看到有“ERROR: Exception”异常,因此此方法不行。

解决ERROR: Could not find a version that satisfies the requirement pyQt5 (from versions: none)报错问题_第1张图片

 2、通过查资料我换另一种方式pip,输入:pip install -i http://mirrors.aliyun.com/pypi/simple/ pyQt5

此方法也会报错

解决ERROR: Could not find a version that satisfies the requirement pyQt5 (from versions: none)报错问题_第2张图片

!!!!!最后我们换另一个镜像,输入:pip install pyqt5 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

 出现“Successfully installed PyQt5-Qt5-5.15.2 PyQt5-sip-12.11.0 pyqt5-5.15.7”表示pip成功解决ERROR: Could not find a version that satisfies the requirement pyQt5 (from versions: none)报错问题_第3张图片

 

你可能感兴趣的:(python,python,开发语言)