我如何可以打包整个蟒间preTER在Android APK? [英] How can I package the whole python interpreter in an Android APK?
问题描述
我知道SL4A,我怎么能在Android上运行Python脚本。
I know about SL4A and how I can run Python scripts in Android.
我需要知道我怎么能在我的APK包整个Python的跨preTER所以我的最终用户不必运行我的应用程序之前,下载并安装SL4A。
I need to know how I can package the whole Python interpreter inside my APK so my end-users won't have to download and install SL4A before running my App.
感谢。
推荐答案
还有的 Android的python27 的项目,实际上比的Python 2.7其他除preters工作,尽管名称。如果要捆绑一个Python应用程序跨preTER在一个单一的APK,这是他们唯一的选择。您可以使用不同的跨preters,并添加自己的Python库和之类的话。
There's the android-python27 project, which actually works with interpreters other than Python 2.7, despite the name. If you want to bundle a Python application with an interpreter in a single APK, that's about the only option. You can use different interpreters and add your own Python libraries and that kind of thing.
这是pretty的痛苦的使用是诚实的〜用户友好的方式要求Eclipse的〜不过,如果你已经准备好打包的应用程序,它的工作。
It's pretty painful to use to be honest ~ the 'user-friendly' approach requires Eclipse ~ but, if you're ready to package your app, it does the job.
这是根据Apache许可证2.0可用。
It's available under Apache License 2.0.
这篇关于我如何可以打包整个蟒间preTER在Android APK?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!