open-interpreter-termux icon indicating copy to clipboard operation
open-interpreter-termux copied to clipboard

Android install guide must use Termux pre-built wheels to avoid 1-hour source builds

Open endolith opened this issue 5 months ago • 0 comments

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 python package (no SSL) → pip cannot reach PyPI.
  • Lists packages (build-essential, matplotlib) that do not exist in current repos → pkg install fails 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.

endolith avatar Sep 08 '25 05:09 endolith