【ARMv8架构系统安装PySide2】

ARMv8架构系统安装PySide2

  • [Step1. 下载Qt资源包](#Step1. 下载Qt资源包)
  • [Step2. 配置和安装Qt5](#Step2. 配置和安装Qt5)
  • [Step3. 检查Qt-5.15.2安装情况](#Step3. 检查Qt-5.15.2安装情况)
  • [Step4. 安装PySide2所需的依赖库](#Step4. 安装PySide2所需的依赖库)
  • [Step5. 下载和配置PySide2](#Step5. 下载和配置PySide2)
  • [Step6. 检验PySide2是否安装成功](#Step6. 检验PySide2是否安装成功)

Step1. 下载Qt资源包

if you need the whole Qt5 (~900MB):

bash 复制代码
wget http://master.qt.io/archive/qt/5.15/5.15.2/single/qt-everywhere-src-5.15.2.tar.xz

or qtbase (basic module such as QtCore, QtGui and QtWidget)(~90MB):

bash 复制代码
wget http://master.qt.io/archive/qt/5.15/5.15.2/submodules/qtbase-everywhere-src-5.15.2.tar.xz

Step2. 配置和安装Qt5

(here I used qtbase)

bash 复制代码
tar -xpf qtbase-everywhere-src-5.15.2.tar.xz
cd qtbase-everywhere-src-5.15.2/
./configure -xcb

(must enable xcb here manually)

Choose "o" to install Qt open source version.

bash 复制代码
make -j4
sudo make install

Step3. 检查Qt-5.15.2安装情况

Now we have Qt5 under /usr/local/Qt-5.15.2

Step4. 安装PySide2所需的依赖库

Before install PySide2, first we have to deal with some requirements:

General requirements: Python: 3.5+, Qt: 5.12+, libclang: version10, CMake:3.1+, llvm: version10;Here I personally suggest use synaptic to manage library:

bash 复制代码
sudo apt-get install synaptic

Then install the correct version of libclang and llvm via synaptic.

Step5. 下载和配置PySide2

Download and build PySide2

bash 复制代码
git clone http://code.qt.io/pyside/pyside-setup.git 
cd pyside-setup/
git checkout 5.15.2

I'm not sure whether the version of Qt5 and PySide2 must match. Anyway, here I used PySide2 5.12.2

Finally, to install PySide2:

bash 复制代码
 sudo python setup.py install --qmake=/usr/local/Qt-5.15.2/bin/qmake

(qmake is automatically installed with Qt5)

Step6. 检验PySide2是否安装成功

Try PySide2 in Python:

bash 复制代码
python
from PySide2 import *
相关推荐
@sinner16 分钟前
《扫雷:病毒蔓延》- 颠覆传统的动态扫雷游戏
python·游戏·pygame
愈努力俞幸运16 分钟前
python 列表浅拷贝 深拷贝
python
测试老哥28 分钟前
测试用例之正交试验法、功能图法
自动化测试·软件测试·python·功能测试·测试工具·职场和发展·测试用例
岁岁岁平安1 小时前
python基本数据类型、字典、 集合、条件与循环控制、函数(3)
python·学习·集合·函数·字典·python3
wan了个蛋1 小时前
使用python脚本大批量自动化处理图片上的ai水印
python
好家伙VCC2 小时前
**TensorFlow:发散创新的深度学习框架探索**随着人工智
java·人工智能·python·深度学习·tensorflow
YFLICKERH2 小时前
【多进线程】python多进线程与通信
python
程序员爱钓鱼2 小时前
Python编程实战 · 基础入门篇 | 第一个Python程序:Hello World
后端·python·编程语言
川石课堂软件测试3 小时前
CSS中常用的几种定位。
开发语言·css·python·网络协议·http·html·pytest
C.R.xing3 小时前
Pyspark分布式访问NebulaGraph图数据库
数据库·分布式·python·pyspark·nebulagraph