Instructions how to install NUMPY and PANDAS on Termux #19126
sylirre
started this conversation in
Show and tell
Replies: 4 comments 4 replies
-
So what's wrong with that? |
Beta Was this translation helpful? Give feedback.
2 replies
-
How to update Numpy? |
Beta Was this translation helpful? Give feedback.
1 reply
-
What about changing the LDFLAGS to |
Beta Was this translation helpful? Give feedback.
1 reply
-
solved my problem. thanks so much. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
These instructions confirmed to work with Python 3.11 from official Termux repositories and tested on fresh Termux installation (aarch64, Android 14).
Resulting versions are
Numpy 1.26.3
andPandas 2.2.0
as of Feb 1, 2024.Stop reporting
pandas
andnumpy
installation issues again and again and don't follow old instructions.Instructions at https://wiki.termux.com/wiki/Python are obsolete (last update in Oct, 2022). If you want to keep them up-to-date, please contribute. Termux maintainers will not check installability of every single Python module and update setup commands.
Common tips when using
pip
in Termux:--no-build-isolation
if module requires cmake, ninja, patchelf or something like during build time.--no-cache-dir
to prevent reusing modules from cache. Useful in case you used wrong commands previously.LDFLAGS="-lpython3.11"
to force link native extensions with Python 3.11 library (replace 3.11 with actual Python version). Needed at least for Numpy but other modules could require it as well.pip install --upgrade pip
. Termux uses a patched variant of Pip, that's why. A lot of seemingly stable & standard stuff has to be patched in order to work properly in Termux.Beta Was this translation helpful? Give feedback.
All reactions