Step 1 Create a new project Step 2 Set the default P圜harm parser. Visit the official website Choose download and install Community version. import sys from PyQt5 import QtWidgets, QtCore app = QtWidgets.QApplication(sys.argv) widget = QtWidgets.QWidget() widget.resize(400, 200) tWindowTitle('This is PyQt Widget example') widget.show() exit(app.exec_()) After running, the following screen will pop up, indicating that PyQt is working normally. Test if pqyt5 is actually installed Create a new file, example.py, and enter the following code. pip install pyqt5 pyqt5-tools The command is executed and PyQt5 is installed. Install Python With Numpy Scipy Matplotlib On Macos Big Sur Apple Silicon M1 Download. Visit the official website at to download and install your target Python version. With PyQt5, the GUI is designed in two ways: directly using the code to design the interface using QtDesigner to visualize the design, and then convert the resulting. This article describes how to install Python + P圜harm + PyQt5.