【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 *
相关推荐
三年呀15 分钟前
**标题:发散创新之力,探索隐私计算的未来**隐私计算,作为当下数字化时代的热门话题,正受
python
R-G-B44 分钟前
OpenCV Python——报错AttributeError: module ‘cv2‘ has no attribute ‘bgsegm‘,解决办法
人工智能·python·opencv·opencv python·attributeerror·module ‘cv2‘·no attribute
DavieLau1 小时前
C#项目WCF接口暴露调用及SOAP接口请求测试(Python版)
xml·服务器·开发语言·python·c#
白露与泡影2 小时前
Spring容器初始化源码解析
java·python·spring
码界筑梦坊2 小时前
98-基于Python的网上厨房美食推荐系统
开发语言·python·美食
计算机源码社2 小时前
分享一个基于Hadoop的二手房销售签约数据分析与可视化系统,基于Python可视化的二手房销售数据分析平台
大数据·hadoop·python·数据分析·毕业设计项目·毕业设计源码·计算机毕设选题
lpfasd1232 小时前
非中文语音视频自动生成中文字幕的完整实现方案
开发语言·python
大志说编程3 小时前
LangChain框架入门15:深度解析Retrievers检索器组件
python·langchain·llm
NEUMaple3 小时前
python爬虫(四)----requests
开发语言·爬虫·python
bluebonnet274 小时前
【Python】一些PEP提案(六):元类、默认 UTF-8、Web 开发
开发语言·前端·python