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.
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.
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.
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 ...
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With