kivy buildozer无法编译针对python3的应用程序 [英] kivy buildozer cant compile application targeting python3
问题描述
我正在尝试针对python3构建我的kivy应用程序.
I'm trying to build my kivy application against python3.
首先,我下载了crystax ndk,并将ANDROIDNDK设置为它的位置.我在buildozer.spec的要求中添加了python3crystax,并使用以下命令启动了构建:
First I downloaded the crystax ndk, and set the ANDROIDNDK to it's location. I added python3crystax to my requirements in the buildozer.spec and launched the build with:
buildozer android调试部署运行logcat
buildozer android debug deploy run logcat
此命令导致以下错误:
命令失败:pip install --target =/home/cedric/Documents/Development/python/kivyapp/.buildozer/applibs python3crystax
Command failed: pip install --target=/home/cedric/Documents/Development/python/kivyapp/.buildozer/applibs python3crystax
如果我尝试通过pip手动安装python3crystax,似乎该软件包根本不存在?
If I try to install python3crystax manually with pip it seems, that this package dosen't even exists?
尝试
buildozer android调试部署运行logcat
buildozer android debug deploy run logcat
导致以下错误:
错误:找不到colorama Python模块,请安装 版本0.3.3或更高版本
ERROR: The colorama Python module could not be found, please install version 0.3.3 or higher
错误:找不到appdirs Python模块,请安装 它.
ERROR: The appdirs Python module could not be found, please install it.
错误:找不到sh Python模块,请安装版本 1.10或更高版本
ERROR: The sh Python module could not be found, please install version 1.10 or higher
错误:找不到jinja2 Python模块,请安装它.
ERROR: The jinja2 Python module could not be found, please install it.
所有模块均以其当前版本安装. 有人可以帮我解决这个问题吗?
All modules are installed with their current version. Can anybody help me to solve this problem?
感谢塞德里克
推荐答案
使用buildozer android_new debug
代替,您正在使用android
,它是用旧的工具链构建的,不支持python3.
Use buildozer android_new debug
instead, you are using android
which builds with the old toolchain and does not support python3.
这篇关于kivy buildozer无法编译针对python3的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!