基础环境:

sudo apt install qt5-default qt-sdk qtcreator

python2:

sudo apt install python-pyqt5

python3:

sudo apt install python3-pyqt5

测试:

import PyQt5