Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I run Numpy (or other Python packages) on Android? [duplicate]

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!

like image 640
Bence Avatar asked Mar 11 '23 03:03

Bence


1 Answers

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.

like image 131
LinkBerest Avatar answered Apr 28 '23 02:04

LinkBerest