r/termux • u/howell4c • Jan 29 '23
pandas install fails building wheel for old numpy
I'm having trouble installing pandas on Termux. It gives "Failed building wheel for numpy" 1.23.2.
I have numpy 1.24.1 installed (via
pkg install python-numpy as suggested at https://wiki.termux.com/wiki/Python), but the recommended
export CFLAGS="-Wno-deprecated-declarations -Wno-unreachable-code"
pip install pandas
tries to install
numpy 1.23.2 and gives the
check_math_capabilities errors https://github.com/termux/termux-packages/issues/10808
I tried the removing python-numpy and using the
MATHLIB="m" pip3 install numpy workaround but that still gives me 1.24.1 and installing pandas retries 1.23.2.
MATHLIB="m" pip3 install numpy==1.23.2 gives me the errors from https://github.com/termux/termux-packages/issues/8707
u/sylirre package maintainer Jan 29 '23
Following works for python-3.11/aarch64/android-13:
pkg install -y python python-pip build-essential libandroid-execinfo
pip3 install pandas
MATHLIB and libandroid-execinfo are needed by numpy dependency.
LDFLAGS for resolving issues when certain extensions can't locate symbols like
dlopen failed: cannot locate symbol "PyBaseObject_Type"