Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't install PyQt5 on python 3 with spyder ide

So I'm trying to install the PyQt package so I just did this on my 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.

So I tried a different version with:

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

And then this happened:

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.
like image 581
Diogo Mata Avatar asked Jul 19 '20 12:07

Diogo Mata


People also ask

What version of PyQt5 is required for Spyder?

I've installed pyqtchart which requires PyQt5>=5.15.4. However, spyder requires PyQt5<5.13. To save my disk space, I don't want to create virtual environment for APPs that use pyqtchart.

Can PyQt run on Mac?

As a cross-platform toolkit, PyQt can run on all major operating systems (Unix, Windows (Mac). This article describes how to install Python + PyCharm + PyQt5. With PyQt5, the GUI is designed in two ways: using QtDesigner to visualize the design, and then convert the resulting .ui file into a .py file.

How do I install pqyt5 in Python?

Install PyQt5. Enter the cmd interface. Run the command and wait a moment. pip install pyqt5 pyqt5-tools. The command is executed and PyQt5 is installed. Test if pqyt5 is actually installed. Create a new file, example.py, and enter the following code. imp ...

How to create a GUI in PyCharm using PyQt5?

With PyQt5, the GUI is designed in two ways: using QtDesigner to visualize the design, and then convert the resulting .ui file into a .py file. Install Python + PyCharm + PyQt5.


1 Answers

To install these with our errors try this. Try installing pyqtwebengine version 5.12 and then install pyqt5 version 5.12. using following commands:

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

By this, I have successfully installed pyqt5

like image 167
NALLAPANENIVENKATESH CHOWDARY Avatar answered Sep 19 '22 11:09

NALLAPANENIVENKATESH CHOWDARY