Skip to content

Commit 66f9b6e

Browse files
committed
pandas and matplotlib termux
1 parent 69aa2aa commit 66f9b6e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

setup_termux.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ if ! pkg install -y tur-repo 2>/dev/null; then
7070
echo " TUR repo not found, trying without..."
7171
fi
7272
# Install pre-built numpy, scipy, pandas, pillow, matplotlib - instant, no compilation
73-
for pkg_name in python-numpy python-scipy python-pandas python-pillow python-matplotlib; do
73+
for pkg_name in python-numpy python-scipy python-pandas python-pillow matplotlib python-matplotlib; do
7474
if pkg install -y "$pkg_name" 2>/dev/null; then
7575
echo " Installed $pkg_name"
7676
else
@@ -119,6 +119,9 @@ if ! python -c "import numpy" 2>/dev/null; then
119119
echo " numpy not from pkg, installing from TUR..."
120120
pip install --extra-index-url https://termux-user-repository.github.io/pypi/ numpy scipy pandas matplotlib pillow
121121
fi
122+
# pkg has pandas 3.0.0 but streamlit requires pandas<3.0 - install pandas 2.x from TUR (wheel) to avoid build
123+
echo " Ensuring pandas 2.x (pkg 3.0 conflicts with streamlit)..."
124+
pip install --extra-index-url https://termux-user-repository.github.io/pypi/ "pandas>=2.3,<3.0"
122125
# Install openpyxl, streamlit, etc. - these are fast (pure Python or have wheels)
123126
pip install -r requirements_termux.txt
124127

0 commit comments

Comments
 (0)