问题描述
是可以使用Python为Android构建APK,这不需要Python for Android,即它包括Python?如果是,怎么样?
推荐答案
我相信这是您要查找的: https://代码. google.com/p/android-python27/
这将将python嵌入到您的APK中.首次发布它将为您提供一个对话框,说明它是"安装".此部分将与Python的集成版本一起安装脚本.如果您有偏好(2.6,2.7,3.2),您还能够嵌入不同版本的Python.
其他推荐答案
我认为您可以使用py2exe将程序用于转换为.exe - 文件,然后将此.exe - 文件转换为.apk - 文件.
问题描述
Is it possible to build an APK using Python for Android that doesn't need Python for Android to be there, i.e. it includes Python? If so, how?
推荐答案
I believe this is what you are looking for: https://code.google.com/p/android-python27/
This will embed python into your apk. On first launch it will give you a dialog stating it is "installing". This part will install your script along with an integrated version of python. You are also able to embed different versions of python if you have a preference (2.6, 2.7, & 3.2).
- Tutorials to get started are found here: https://code.google.com/p/android-python27/w/list
其他推荐答案
I think you can use py2exe to convert your programm to an .exe - File and then convert this .exe - File to an .apk - File.