3

I am trying to install python in my android device but it fails. For references i have used scripting language for android and python for android apks from the below link:

https://github.com/damonkohler/sl4a

https://awesomedetect.com/how-to-install-python-on-android-without-root-and-no-internet/

I have installed these apks but still through adb shell when i try to access or run the python interpreter its showing me the following errors.

   ASUS_Z010D:/data/user/0/com.googlecode.pythonforandroid/files/python/bin#
   ./python

   CANNOT LINK EXECUTABLE "./python": library "libpython2.7.so" not found

   Aborted

  ASUS_Z010D:/data/user/0/com.googlecode.pythonforandroid/files/python/bin#

Kindly help me out with this issue..!

I need to install python and run the .py script in my android device.

Thanks in advance..!

4
  • Installing new binaries to the system itself, especially ones which require a lot of shared libraries, like Python, is going to be a nightmare. Why don't you install Termux, a compact Linux environment, and issue apt install python for the latest Python version, or apt install python2 for Python2, instead?
    – Grimoire
    Jul 5, 2018 at 12:03
  • Have you tried PyDroid3 IDE ? Jul 5, 2018 at 17:28
  • Do you always install APKs from Google Drive links on dodgy websites? That's a good way to get malware.
    – Dan Hulme
    Jul 9, 2018 at 9:06
  • Have you read github.com/damonkohler/sl4a/blob/wiki/RunPythonAsScript.md?
    – Robert
    Jul 11, 2018 at 19:38

2 Answers 2

1

Depending on what your script is trying to do you may find QPython sufficient for your needs.

It is available free from the play store and provides a python 3 environment but with some limitations on the libraries available.

0

You can install python in Termux even without root. Run: pkg install python or python2.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .