香橙派AIPro开发板安装PyQt5
参考
开发板信息
官网开发板信息
软件环境信息
1、安装依赖环境
sudo apt-get install cmake gcc g++
pip3 install --upgrade pip
pip3 install wheel setuptools
sudo apt-update
sudo apt-get install qt5-default
sudo apt-get install qtdeclarative5-dev
sudo apt-get install build-essential
sudo apt-get install qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools
sudo apt-get install qt5*
2、下载源码包
wget https://pypi.tuna.tsinghua.edu.cn/packages/28/6c/640e3f5c734c296a7193079a86842a789edb7988dca39eab44579088a1d1/PyQt5-5.15.2.tar.gz
wget https://www.riverbankcomputing.com/static/Downloads/sip/4.19.25/sip-4.19.25.tar.gz
3、编译sip
tar zxvf sip-4.19.25.tar.gz
cd ./sip-4.19.25
python3 configure.py --sip-module PyQt5.sip
make
make install
4、编译pyqt5
tar zxvf PyQt5-5.15.2.tar.gz
cd ./PyQt5-5.15.2
python3 configure.py
make -j4
make install
5、测试
python
import PyQt5