Sample Header Ad - 728x90

Setting up Python so that it can be run on any Android terminal apps

2 votes
1 answer
1757 views
I'm trying to get Python 3 to run natively on Android. By "native", I mean native Linux, just an Android variation of it. I'd like to be able to simply open a terminal and type python /path/to/script.py, so Kivy and Qslide will not work (to my knowledge, feel free to prove me wrong). Normally, Termux would do this, but I don't like the terminal app just the Linux packages it supplies, prefer to use another called Terminal Emulator by Jackpal. I've tried booting into TWRP (I don't have root otherwise) and copying the necessary Python binaries and lib folder and the Termux data directory to /system/bin and /system/lib, but Python fails, saying it can't find libandroid-support.so. I realize Termux's Python is probably modified in some way to account for the directory structure required by an Android app and therefore couldn't find the .so even after I copied it to /system/lib. So my question(s) are: How might I make the solution I tried work? Are there any other ways to get Python installed as a native Linux app*? --- *Like I said, I want it to be just like on a desktop Linux where I can open ANY terminal app and use python just like any other command.
Asked by Myersj281 (21 rep)
Dec 8, 2018, 05:49 PM
Last activity: Oct 17, 2022, 01:11 PM