Can I run Numpy (or other Python packages) on Android?
Question: 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!


Answer: If you do not want to build a website or app and have Python/Pandas running as
a backend. You can use [Kivy](https://kivy.org/planet/2015/04/python-
on%C2%A0android/) as a [packager to run
Python](https://github.com/kivy/python-for-android) on Android. Further, if
you check out [the answer to this
question](http://stackoverflow.com/questions/33398723/kivy-numpy-android-
error) it points to the documentation for using numpy too - which is to use a
["recipe" for compilation](https://github.com/kivy/python-for-
android/tree/master/pythonforandroid/recipes/numpy).

If using Kivy and not using a pure python library - these recipes will need to
be used or created [if they do not
exist](https://github.com/kivy/buildozer/issues/343#issuecomment-218593658).
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.

