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..!

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

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.