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:



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.


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



Kindly help me out with this issue..!

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

Thanks in advance..!

  • 1
    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
    Commented Jul 5, 2018 at 12:03
  • Have you tried PyDroid3 IDE ? Commented 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
    Commented Jul 9, 2018 at 9:06
  • Have you read github.com/damonkohler/sl4a/blob/wiki/RunPythonAsScript.md?
    – Robert
    Commented Jul 11, 2018 at 19:38

2 Answers 2


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.


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 .