这有可能运行程序内置在iOS上作为一个静态库蟒蛇? [英] Is that possible to run a python built program on iOS as a static lib?
问题描述
我在使用非标准库的Python 2.7开发了一些AI code。
I have some AI code developed in python 2.7 that uses non-standard libraries.
我打算编译它与我的iPhone应用程序的工作。
I intend to compile it to work with my iPhone app.
我不希望重新编程一切都那么,是一种编译我的Python code +所有的依赖关系到一个静态文件,所以我可以从我的iOS应用程序作为一个函数调用它?
I wouldn't like to re-program everything so, is that a way to compile my python code + all dependencies into a static file so I can call it from my iOS app as a function?
推荐答案
kivy可以做到这一点。
kivy can do it
http://kivy.org/docs/guide/packaging-ios.html
也可能看的https: //itunes.apple.com/us/app/python-for-ios/id485729872?ls=1&mt=8
但我怀疑你可以编译现有项目到它......你需要重新写它的至少一部分,你只能使用纯Python库(kivy)
although I doubt you can just compile your existing project into it... you will need to re-write at least part of it and you can only use pure python libraries (kivy)
这篇关于这有可能运行程序内置在iOS上作为一个静态库蟒蛇?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!