compiling pyqt5 code example Example 1: install pyqt5 pip install PyQt5 Example 2: install pyqt5 pip3 install PyQt5