Python for Android APK without dependencies

匆匆过客 提交于 2019-12-13 12:15:27

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!