linux arm64安装PYQT5

原链接:                        
原文链接:https://blog.csdn.net/weixin_50005386/article/details/141460070

此链接遇到点问题,给管理员权限就行

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

//此处一定要给权限
sudo make
sudo make install

4、编译pyqt5
tar zxvf PyQt5-5.15.2.tar.gz
cd ./PyQt5-5.15.2
python3 configure.py

sudo make -j4
sudo make install

5、测试
python
import PyQt5

你可能感兴趣的:(python)