【问题标题】:Can't install PyQt5 on python 3 with spyder ide无法使用 spyder ide 在 python 3 上安装 PyQt5
【发布时间】:2020-11-08 19:46:14
【问题描述】:

所以我正在尝试安装 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.

【问题讨论】:

    标签: python interface pyqt5


    【解决方案1】:

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

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

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

    【讨论】:

      猜你喜欢
      • 2020-12-04
      • 2013-05-06
      • 2020-04-15
      • 1970-01-01
      • 2021-09-02
      • 1970-01-01
      • 2020-05-23
      • 2021-04-23
      • 2019-10-18
      相关资源
      最近更新 更多