【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 *
相关推荐
倔强的石头_13 分钟前
你的 Python 为什么“优雅地慢”?——读《极速Python:高性能编码、计算与数据分析》
python
程序猿 小项目大搞头20 分钟前
视频加水印,推荐使用运营大管家-视频批量加水印软件
python
Adorable老犀牛42 分钟前
可遇不可求的自动化运维工具 | 2 | 实施阶段一:基础准备
运维·git·vscode·python·node.js·自动化
xchenhao1 小时前
SciKit-Learn 全面分析 digits 手写数据集
python·机器学习·分类·数据集·scikit-learn·svm·手写
胡耀超2 小时前
7、Matplotlib、Seaborn、Plotly数据可视化与探索性分析(探索性数据分析(EDA)方法论)
python·信息可视化·plotly·数据挖掘·数据分析·matplotlib·seaborn
tangweiguo030519872 小时前
Django REST Framework 构建安卓应用后端API:从开发到部署的完整实战指南
服务器·后端·python·django
Dfreedom.2 小时前
在Windows上搭建GPU版本PyTorch运行环境的详细步骤
c++·人工智能·pytorch·python·深度学习
兴科Sinco2 小时前
[leetcode 1]给定一个整数数组 nums 和一个整数目标值 target,请你在该数组中找出和为目标值 target 的那两个整数[力扣]
python·算法·leetcode
程序员奈斯2 小时前
Python深度学习:NumPy数组库
python·深度学习·numpy
yongche_shi2 小时前
第二篇:Python“装包”与“拆包”的艺术:可迭代对象、迭代器、生成器
开发语言·python·面试·面试宝典·生成器·拆包·装包