pythoni 安卓,我可以在Android上运行Numpy(或其他Python软件包)吗?

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!

解决方案

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.

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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值