$ pip install python-qt5
You'll also need the Visual C++ Redistributable.
For alternative installation methods, see the wiki
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()
>>> app.exec_()
- More information in the Wiki