When I try installing the PyQt5 on Windows using the command
python configure.py
I get this error:
Error: Mak
I found a partial solution...
Steps to install pyQt5 (with VS 2012) on Windows:
1) Install the binary file Qt 5.0.2 for Windows 64-bit (VS 2012, 500 MB)
from here.
2) Get sip-4.14.7
(development snapshot) from here.
3) Extract the file and open the Developer Command Prompt for VS2012
.
4) Execute these commands (in sip folder):
python configure.py
nmake
nmake install
5) Get the pyQt5
from here.
6) Extract the file and open the VS2012 x64 Native Tools Command Prompt
.
7) Execute these commands:
python configure.py
UPDATE: When execute these commands below is not working:
nmake
nmake install
Solution: I will try use pyQt4 with Qt5... because pyQt5 is in development and doesn't have support/documentation yet.
I'm new to both Python and PyQt5. I tried to use pip, but I was having problems with it using a Windows machine. If you have a version of Python 3.4 or above, pip is installed and ready to use like so:
python -m pip install pyqt5
That's of course assuming that the path for Python executable is in your PATH environment variable. Otherwise include the full path to Python executable (you can type where python
to the Command Window to find it) like:
C:\users\userName\AppData\Local\Programs\Python\Python34\python.exe -m pip install pyqt5
Mainly I use the following command under the cmd
pip install pyqt5
And it works with no problem!
The easiest way to install PyQt is to just use the installer (Link in your answer, step #5). If you install python 3.3, the installer will add all of the PyQt5 extras to that python installation automatically. You won't need to do any compiling (none of: nmake, nmake install, python configure).
All of the build options are available for if you need a custom install (for instance, using a different version of python, where there isn't an installer provided by riverbank computing).
If you do need to compile your own version of PyQt5, the steps (as you have found) are here, but assume you have python and a compiler installed and in your path. The installed and in your path have been where you have been running into trouble it seems. I'd recommend using the installer version, but you need to install python 3.3 first.
Another command under the cmd
is:
easy_install pyqt5
To install the GPL version of PyQt5, run (see PyQt5 Project):
pip3 install pyqt5
This will install the Python wheel for your platform and your version of Python (assuming both are supported).
(The wheel will be automatically downloaded from the Python Package Index.)
The PyQt5 wheel includes the necessary parts of the LGPL version of Qt. There is no need to install Qt yourself.
(The required sip
is packaged as a separate wheel and will be downloaded and installed automatically.)
Note:
If you get an error message saying something as
No downloads could be found that satisfy the requirement
then you are probably using an unsupported version of Python.