open-interpreter-termux
open-interpreter-termux copied to clipboard
Android install guide must use Termux pre-built wheels to avoid 1-hour source builds
I tried to go through these directions and it didn't work. I kept pasting error messages into AI and trying things until I got Open Interpreter working in Termux 0.118.3 1002 on Android 15 Sony XQ-DQ54, and we came up with these instructions:
Summary
Current Termux instructions tell users to:
pkg install termux-api python-pip cmake ninja patchelf build-essential matplotlib rust binutils libzmq
pip install open-interpreter
On a fresh F-Droid Termux (2025) this:
- Pulls the light
pythonpackage (no SSL) →pipcannot reach PyPI. - Lists packages (
build-essential,matplotlib) that do not exist in current repos →pkg installfails immediately. - Forces pip to compile
grpcio,matplotlib,pillow,tokenizers,pyzmq,torch, etc. from source – a >1 h process that usually exhausts RAM or disk and dies on missing headers.
Fix – use only what Termux already ships as binaries
Replace the long pkg install block with the complete pre-built set:
# 1. update system (say y, then ENTER at every config prompt)
pkg update && pkg upgrade
# 2. enable community repo
pkg install x11-repo
# 3. install EVERY heavy native wheel that exists pre-built
pkg install python python-pip \
python-grpcio python-pillow python-matplotlib \
python-numpy python-tokenizers python-pyzmq \
ninja patchelf cmake rust binutils libzmq
# 4. tiny helpers some sdists still need
pip install -U setuptools wheel meson-python
# 5. install open-interpreter – pure wheels only
pip install open-interpreter
Result:
- 10–15 min total elapsed (limited by phone CPU while building small pure-Python wheels).
- 400 MB disk use instead of >2 GB.
- Zero “spawn.h”, “libmd”, or cargo failures.