小编sup*_*olo的帖子

在 Raspberry PI 4 上运行 PySide6 和 GPIO

最近我买了一台全新的 Raspberry Pi 4B,内存为 8Gb,并安装了 Ubuntu Desktop 21.04。

我的目标是在触摸屏上创建一个 GUI,用于控制 GPIO 引脚(某些硬件设备)。

由于控制 GPIO 是由 Python 完成的,所以我也想用它来编写 GUI。我看了几个教程,决定使用 PySide6 + Qt Quick。这种程序在我的个人笔记本电脑上运行良好,但当尝试下载 Raspberry 上所需的依赖项时,例如:

python3.9 -m pip install PySide6

我收到以下错误:

ERROR: Could not find a version that satisfies the requirement PySide6 (from versions: none)
ERROR: No matching distribution found for PySide6
Run Code Online (Sandbox Code Playgroud)

我认为这个问题可能是由交叉编译引起的。

您知道是否有机会在 Raspberry Pi 4B 上运行 PySide6 和 QtQuick?

更新

在采用 Manjaro ARM KDE Plasma 21.07 64 位操作系统的 Raspberry Pi 4B 上进行测试

运行以下命令:

* Update the package database …
Run Code Online (Sandbox Code Playgroud)

user-interface pyside qt-quick raspberry-pi pyside6

6
推荐指数
1
解决办法
2251
查看次数

标签 统计

pyside ×1

pyside6 ×1

qt-quick ×1

raspberry-pi ×1

user-interface ×1