无法使用 spyder ide 在 python 3 上安装 PyQt5

Can't install PyQt5 on python 3 with spyder ide

所以我正在尝试安装 PyQt 包,所以我只是在我的 Anaconda Prompt 上做了这个:

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.

要安装这些我们的错误试试这个。 尝试安装 pyqtwebengine 5.12 版,然后安装 pyqt5 5.12 版。使用 以下命令:

pip install --upgrade --user pyqtwebengine==5.12
pip install --upgrade --user pyqt5==5.12

至此,我已经成功安装了pyqt5