我可以在Android上运行Numpy(或其他Python软件包)吗? [英] Can I run Numpy (or other Python packages) on Android?

查看:773
本文介绍了我可以在Android上运行Numpy(或其他Python软件包)吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经实现了一个python脚本,该脚本导入了Numpy和Pandas,我想在Android上运行此脚本.更确切地说,我想将此脚本嵌入到应用程序中.
我想知道是否有可能?如果是这样,实施它的最佳实践是什么?
我将不胜感激!

I have implemented a python script, which imports Numpy and Pandas and I would like to run this script on Android. To be more precise, I would like to embed this script into an application.
I would like to know whether it is possible? If so, what are the best-practices to implement it?
I would greatly appreciate any help!

推荐答案

如果您不想建立网站或应用,并希望将Python/Pandas作为后端运行.您可以将 Kivy 用作这个问题的答案,它也指向使用numpy的文档. -使用食谱"进行编译.

If you do not want to build a website or app and have Python/Pandas running as a backend. You can use Kivy as a packager to run Python on Android. Further, if you check out the answer to this question it points to the documentation for using numpy too - which is to use a "recipe" for compilation.

如果使用Kivy而不是使用纯python库-这些食谱将需要使用或创建

If using Kivy and not using a pure python library - these recipes will need to be used or created if they do not exist. So with Pandas, you would need to build this recipe yourself. Even if you do build this resource, the size of trying to load Pandas (not to include the resources it can require when performing analysis on dataframes) might be a bottleneck if trying to include it directly in the app and it still might be better to do this in a backend situation.

这篇关于我可以在Android上运行Numpy(或其他Python软件包)吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆