所以我正在尝试安装PyQt包,所以我只是在我的Anaconda提示符上这样做:
C:\Users\USER>pip install PyQt5
Collecting PyQt5
Using cached PyQt5-5.15.0-5.15.0-cp35.cp36.cp37.cp38-none-win_amd64.whl (64.5 MB)
Collecting PyQt5-sip<13,>=12.8
Using cached PyQt5_sip-12.8.0-cp37-cp37m-win_amd64.whl (62 kB)
ERROR: spyder 4.1.4 requires pyqtwebengine<5.13; python_version >= "3", which is not installed.
ERROR: spyder 4.1.4 has requirement pyqt5<5.13; python_version >= "3", but you'll have pyqt5 5.15.0 which is incompatible.所以我尝试了一个不同的版本:
pip install --upgrade --user pyqt5==5.12然后发生了这样的事情:
Collecting pyqt5==5.12
Downloading PyQt5-5.12-5.12.1_a-cp35.cp36.cp37.cp38-none-win_amd64.whl (49.4 MB)
|████████████████████████████████| 49.4 MB 43 kB/s
Collecting PyQt5_sip<4.20,>=4.19.14
Downloading PyQt5_sip-4.19.19-cp37-none-win_amd64.whl (52 kB)
|████████████████████████████████| 52 kB 3.8 MB/s
ERROR: spyder 4.1.4 requires pyqtwebengine<5.13; python_version >= "3", which is not installed.发布于 2020-07-19 21:39:25
要安装这些错误,请尝试以下命令。尝试安装pyqtwebengine版本5.12,然后安装pyqt5版本5.12。使用以下命令:
pip install --upgrade --user pyqtwebengine==5.12
pip install --upgrade --user pyqt5==5.12至此,我已经成功地安装了pyqt5
https://stackoverflow.com/questions/62980464
复制相似问题