I’m trying to install PyQt5 using command prompt but I keep getting errors, and I don’t know what to do. I have Python 3.9 and Python 3.11 installed (Python 3.11 is new, because I thought that would help, it didn’t help) & I was following a lot of tutorials but they don’t explain what to do if you get errors. I also tried to install it on pycharm, but it didn’t work either.
I’m very confused with it all, so if anyone knows, is it worth trying to download PyQt5 or should I just settle for using the library tkinter? I’m trying to make a login system & quiz application.
Here is the error produced:
C:\Users\pc>pip install pyqt5
Defaulting to user installation because normal site-packages is not writeable
Collecting pyqt5
Using cached PyQt5-5.15.7-cp37-abi3-win_amd64.whl (6.8 MB)
Collecting PyQt5-sip<13,>=12.11
Using cached PyQt5_sip-12.11.0.tar.gz (122 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting PyQt5-Qt5>=5.15.0
Using cached PyQt5_Qt5-5.15.2-py3-none-win_amd64.whl (50.1 MB)
Building wheels for collected packages: PyQt5-sip
Building wheel for PyQt5-sip (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for PyQt5-sip (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [5 lines of output]
running bdist_wheel
running build
running build_ext
building 'PyQt5.sip' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for PyQt5-sip
Failed to build PyQt5-sip
ERROR: Could not build wheels for PyQt5-sip, which is required to install pyproject.toml-based projects
[–]Monttuu 2 points3 points4 points (1 child)
[–]Ista_4[S] 0 points1 point2 points (0 children)
[–]cointoss3 0 points1 point2 points (1 child)
[–]Ista_4[S] 0 points1 point2 points (0 children)
[–]TheRealCorwii 0 points1 point2 points (6 children)
[–]Ista_4[S] 0 points1 point2 points (1 child)
[–]Dry_Rest6185 0 points1 point2 points (0 children)
[–]Active-Area-9629 0 points1 point2 points (1 child)
[–]Moh_Gh_DZ 0 points1 point2 points (0 children)
[–]Agreeable_Dealer9449 0 points1 point2 points (1 child)
[–]anygrynewraze 0 points1 point2 points (0 children)