I tried to install PyQt5 but it gave me the following error
Does anyone know how to fix this, how can I install it?
You can use pip install PyQt5
and if you need to install the QtDesigner use pip install pyqt5-tools
and the QtDesigner will be on a route similar to this one:
C:\Users\tu-usuario\AppData\Local\Programs\Python\Python36-32\Lib\site-packages\pyqt5-tools
The easiest way to install PyQt
is to simply use the installer, download link here . If you install Python 3.XX , the installer will add all the PyQt5
extras automatically to that installation of python
. You will not need to do any compilation (none of: nmake
, nmake install
, python configure
).
All compilation options are available if you need a custom installation (for example, using a different version of python, where there is no installer provided).
If you need to compile your own version of PyQt5
, the steps to do this are here , but suppose you have python
and a compiler installed and in your path. The installed and on your route has been where you have been running in trouble, it seems. I recommend using the installer version, but you must first install Python 3.XX .
Your question is a possible duplicate of: How to install and use PyQt5 in Windows?