Is it possible to write Kivy apps for iOS in Python 3.6?

て烟熏妆下的殇ゞ 提交于 2020-05-29 10:37:08

问题


So I am working on a Python based app using Kivy, and wanted to deploy it on my iPhone to test it out. When I searched for how to do this, I found this site: https://kivy.org/docs/guide/packaging-ios.html which is on Kivy's official site.

At the top, it says 'Note Currently, packages for iOS can only be generated with Python 2.7. Python 3.4+ support is on the way.'

Is this info up to date?? If so, is there some way I can deploy the app onto my iPhone using Python 3.6, or will I have to downgrade to Python 2.7?

EDIT: Just wanted to mention, I am on a Mac using PyCharm. I use Python 3.6


回答1:


More up to date answer - yes, you can use python 3.6 now with kivy-ios. I have created and published apps on the app store using python 3.6 and kivy!

Here is an example: https://apps.apple.com/us/app/100-days-of-fitness/id1468049372

100% Python and Kivy :)




回答2:


Unfortunately no. IOS is currently the only kivy platform not ready for python 3 this is do to lacking toolchain requirements and may take a while. There is currently an almost beta release for interfacing some python 3 with kivy using the method:

kivy.compat.PY2 = False

You can read more about this here. However, I highly recommend you don't use any of these because it's more trouble than it's worth right now especially if you want any stability in your app. Python 2.7 is time tested and stable with kivy though so I recommend this over a shaky beta version.

If you have your heart set on using python 3 then you might want to take a look at BeeWare. It is currently up to date with python 3.6 and is similar to kivy.



来源:https://stackoverflow.com/questions/51386478/is-it-possible-to-write-kivy-apps-for-ios-in-python-3-6

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