gpt4 book ai didi

android - 想要在 android 上基于 windows 的 python 应用程序

转载 作者:可可西里 更新时间:2023-11-01 10:47:01 24 4
gpt4 key购买 nike

我有一个基于 GUI 的 Python 应用程序,它是在 Windows 上使用 Python-2.7、pygtk、numpy 和 scipy 开发的。有什么办法可以在android平台上使用这个软件吗?

我也在研究它的 linux 版本。

最佳答案

并非如此,尽管您可以在 Android 设备上运行 python(有关更多信息,请参阅 https://code.google.com/p/android-scripting/),但您不能使用每个包,例如 pygtk是为桌面编写的窗口系统,Android 使用不同的系统。

您最好的办法是将应用程序逻辑留在 python 中,并使用 html 重写用户界面(更多关于如何使用 sl4a 创建 UI 的信息可以在找到 here )

关于android - 想要在 android 上基于 windows 的 python 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20071191/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com