Moved.
pythonis now a package of ex-pkg: the real CPython built from the build scripts of Termux for the prefix of Jaric (full standard library,ssl,sqlite3,ctypes, pip aspython-pip), updated withex update. Install it withex install python(orex pkg install python). This launcher is no longer listed and gets no more updates.
The official build of python.org for Android (libpython3.14.so, 21 MB packed) with a small launcher written in Jex (python.jex, built with jexcmp -dyn; it opens the library with <native> and calls Py_BytesMain). The launcher sets PYTHONHOME and SSL_CERT_FILE itself, so nothing else is needed. Works in Termux and in the Jaric app. ssl, sqlite3, zlib, json, ctypes are there; no pip yet and no tkinter.
python3 -c "print(1 + 1)"
python3 script.py
Without Jaric it is on its own: the launcher finds the folder python-android next to itself (about 78 MB open, 13 MB to fetch).
ex install python
curl -fsSL https://raw.githubusercontent.com/C2k-studio/ex-pkg/main/install.sh | sh -s python # with curl
python3 is a link to python. In jsh: ex install python.
- Check:
python3 --version, thenpython3 -c "import ssl; print(ssl.OPENSSL_VERSION)". - A script: write
hello.pywithprint("hello"), runpython3 hello.py. - The web:
python3 -c "import urllib.request as u; print(u.urlopen('https://www.python.org').status)"prints 200. - The tool yt-dlp runs on this Python.
Build (for the maker): sh release.sh JCMP python-3.14.0-aarch64-linux-android.tar.gz (the tarball from https://www.python.org/ftp/python/3.14.0/). Licenses: the launcher MPL-2.0, Python PSF License.