【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 *
相关推荐
weixin1997010801614 分钟前
《Mercari OTA 直连接入:日本二手电商出海的API通道与600次/分钟限流实战》(附Python源码)
开发语言·数据库·python
半亩码田44 分钟前
【.NET新特性·第17篇】EF Core 10 与 Aspire 13.1
python·flask·.net
zhangzeyuaaa1 小时前
AI Agent 执行引擎选型指南:PowerShell / Bash 和 Python,边界与最佳实践
人工智能·python·bash
泡干脆面就番茄1 小时前
04_EigenFace特征脸PCA人脸识别
python·opencv
T1mzhou1 小时前
ARM64 Linux 6.10 内核驱动(13):bus.c / driver.c 总线两张表,驱动怎么挂上去
linux·服务器·c语言·arm开发·arm
今儿敲了吗1 小时前
01词频统计器
笔记·python
今天AI了吗1 小时前
去中心化 AI 反馈系统:数据不上链,凭证与激励分开管
人工智能·windows·python·数据分析·去中心化·区块链·embedding
今朝唯我少年郎2 小时前
Codex安全盲区代码漏洞生成实测
python·程序员
E_ICEBLUE2 小时前
Python 实现 Excel 转 Markdown,支持工作表、单元格区域和批量处理
python·excel·markdown·格式转换