正确安装 Kivy 1.10+ with Python 3 on Raspberry Pi 3 with 7" Touchscreen Display

Proper way of installation of Kivy 1.10+ with Python 3 on Raspberry Pi 3 with 7" Touchscreen Display

我搜索了很长时间,寻找在 Raspberry Pi 3 上安装 Kivy 1.10.0 的正确方法的描述,Raspbian Stretch Lite 和附加的 7" Raspberry Pi 3 Touch Display 我的问题是 Kivy Site 上有关于 Python 2.7 的描述,但此页面上没有关于 Python 3 方式的更新。 在 this thread a way is shown for Python 3.2 but it seems to be not complete. On this page the way is also shown for 2.7 only. I know that there is a distribution 中总结了所有内容,但我想将其安装在原点 Raspbian 上。

长话短说:我在哪里可以找到在 RPi3 + 7" Touch 上运行的 Kivy 应用程序的所有依赖项和要求的完整列表?

非常感谢您的支持。

我按照您已经链接的 kivy 本身描述的 here 的“手动安装(在 Raspbian Jessie 上)”步骤进行操作。将 pip 替换为 pip3。如果我没记错的话,我就是这么做的。

另外,首先尝试升级没有特定版本的Cython,因为它可能会安装更高版本。

(时间比较长,自己准备等一会吧。。。)

查看评论以修复另一个问题

在 Raspberry Pi 3+ 上找到安装 kivy 的解决方案:

https://groups.google.com/forum/#!topic/kivy-users/OSpnIv4a_S4

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev \
 pkg-config libgl1-mesa-dev libgles2-mesa-dev \
 python-setuptools libgstreamer1.0-dev git-core \
 gstreamer1.0-plugins-{bad,base,good,ugly} \
 gstreamer1.0-{omx,alsa} python-dev
(Note that I stripped off the "cython" from the above command)
sudo pip install cython==0.20.1
sudo pip install git+https://github.com/kivy/kivy.git@7e789b2

在与依赖关系斗争了几天尝试失败后,对我来说非常完美。