Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing Pandas on Termux throws error: Broken toolchain

I've installed Termux (running on Android if that matters) and python (2.7 due to personal preference), but am running into the following issue when installing pandas:

RuntimeError: Broken toolchain: cannot link a simple C program

The same error is thrown for numpy and has something to do with the Cythonic nature of these modules.

Because I wanted to use python 2.7, I'm also using pip2 to install, not sure if that has any bearing on this. And when I install python-dev, I actually use python2-dev.

A previous poster had this issue and it seems to have been fixed, but on Mac, the solution does not work for me.

Really, all I want to do is install python and pandas on Android, and I think Termux is the best solution, but I'm open to suggestion.

like image 957
elPastor Avatar asked Jan 30 '26 12:01

elPastor


1 Answers

Use these commands it will install all libraries like NumPy, pandas, matplotlib, jupyter, SciPy, scikit-learn:

apt install git
git clone https://github.com/sanheensethi/Installing-ML-In-Termux-Python.git
cd Installing-ML-In-Termux-Python
chmod +x ml-install.sh
ml-install.sh
like image 137
Sanheen Sethi Avatar answered Feb 02 '26 00:02

Sanheen Sethi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!