$ pip install python-qt5
You'll also need the Visual C++ Redistributable.
The 5.4 installation is different due to some trouble getting it up onto PyPI, this is what you can do in the meantime.
$ pip install git+https://github.com/pyqt/python-qt5.git
You won't need the Redistributable here; as it is included.
Testing out the installation
- Launch Python
- Type this in
>>> import sys
>>> from PyQt5 import QtWidgets
>>> app = QtWidgets.QApplication(sys.argv)
>>> button = QtWidgets.QPushButton("Hello")
>>> button.setFixedSize(400, 400)
>>> button.show()
- More information in the Wiki