0.安装Qt
sudo apt-get install qt5-default qtcreator
1.安装sip
去这里下载包
https://www.riverbankcomputing.com/software/sip/download
wget https://www.riverbankcomputing.com/static/Downloads/sip/4.19.25/sip-4.19.25.tar.gz
tar zxvf sip-4.19.25.tar.gz
cd sip-4.19.25
python3 ./configure.py
make
sudo make install
2.编译配置PyQt5
注意下面这一步,只是为了得到PyQt5的下载路径
pip3 install pyqt5
得到下载地址
采用wget
wget https://pypi.tuna.tsinghua.edu.cn/packages/8e/a4/d5e4bf99dd50134c88b95e926d7b81aad2473b47fde5e3e4eac2c69a8942/PyQt5-5.15.4.tar.gz
tar zxvf PyQt5-5.15.4.tar.gz
cd PyQt5-5.15.4
python3 ./configure.py
make
sudo make install