问题
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?
回答1:
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
回答2:
I think you can use py2exe to convert your programm to an .exe - File and then convert this .exe - File to an .apk - File.
来源:https://stackoverflow.com/questions/15994251/python-for-android-apk-without-dependencies