Instructions how to install NUMPY and PANDAS on Termux #19126
Replies: 7 comments 5 replies
-
So what's wrong with that? |
Beta Was this translation helpful? Give feedback.
-
How to update Numpy? |
Beta Was this translation helpful? Give feedback.
-
What about changing the LDFLAGS to |
Beta Was this translation helpful? Give feedback.
-
solved my problem. thanks so much. |
Beta Was this translation helpful? Give feedback.
-
It did not work! I did the exact steps in the instruction order, I even freshly installed termux from google play first. What happen was when I ran the following line code from the instruction above I received an error: Error message: Welcome to Termux Docs: https://doc.termux.com Working with packages:
Report issues at https://bugs.termux.com × Preparing metadata (pyproject.toml) did not run successfully.
note: This error originates from a subprocess, and is likely not a problem with pip. × Encountered error while generating package metadata. note: This is an issue with the package mentioned above, not pip. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your response and time effort!
Yes, I did customize the instructions "just a little bit" thinking it may
be work, but it didn't! However the original instructions didn't work
either, maybe because I have the false termux! I will get the original and
try again with the exact instruction
Best regards
في الخميس، ١٨ يوليو ٢٠٢٤, ١٠:٠١ Git User ***@***.***> كتب:
… I did the exact steps in the instruction order
MATHLIB=m LDFLAGS="-lpython3.11.9" pip3 install --no-build-isolation
--no-cache-dir numpy
You definitely customized the steps.
Should be: MATHLIB=m LDFLAGS="-lpython3.11" pip3 install
--no-build-isolation --no-cache-dir numpy
Attention to LDFLAGS specification.
I even freshly installed termux from google play first.
The app on Play Store is not ours. It belongs to
https://github.com/termux-play-store/termux-apps and doesn't receive
support from Termux developers team.
The latest Termux release is
https://github.com/termux/termux-app/releases/latest
—
Reply to this email directly, view it on GitHub
<#19126 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFK5GR26V2KMWBHJ4K2CACTZM5Y35AVCNFSM6AAAAABCVFREMWVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAMBYGE2DONI>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
I was able to install pygame with pip but couldn't install pygame-ce, but thanks to this topic I was able to do it. |
Beta Was this translation helpful? Give feedback.
-
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