Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python libraries #984

Closed
sfbarrerab opened this issue May 4, 2017 · 11 comments
Closed

Python libraries #984

sfbarrerab opened this issue May 4, 2017 · 11 comments

Comments

@sfbarrerab
Copy link

Hi everyone, I am trying to use the python libraries (numpy, matplotlib, etc), but when I run:
packages install python-numpy
I obtained this error:
E: Unable to locate package python-numpy
Someone else have this problem? How can I fix it?

Thanks for your help and sorry for my english (I am from Colombia)

@Grimler91
Copy link
Member

Hi, you have to install numpy and the other modules through pip. See this thread.

@its-pointless also provides .egg files for numpy and scipy over at https://github.com/its-pointless/gcc_termux

@its-pointless
Copy link
Contributor

its-pointless commented May 4, 2017

i recommend using apt rather than the eggs since hte eggs are no longer updated. Just a single line to sources.list and stuff...

@fornwall
Copy link
Member

fornwall commented May 4, 2017

Closing this in favour of the above mentioned #136 issue.

@fornwall fornwall closed this as completed May 4, 2017
@kirAn-sAi
Copy link

I also got the same issue while installing numpy, i pip command it is also not working

@Auxilus
Copy link
Contributor

Auxilus commented Oct 26, 2017 via email

@kirAn-sAi
Copy link

Thank you @Auxilus for your reply. The problem is solved by using the command --> LDFLAGS=" -lm -lcompiler_rt" pip install numpy==1.12

@petacube
Copy link

kiran-sAi nice try but it does work for me either. i get error saying cannot compile Python.h

@Grimler91
Copy link
Member

@petacube Python.h is provided by the package python-dev, so install python-dev with pkg install python-devand try again.

@petacube
Copy link

pkg install python-dev it works!!! am very impressed. as for LDFLAGS, it needs to be export LDFLAGS="-lm -lcompiler_rt" otherwise pip does not see the env variable

@Grimler91
Copy link
Member

if you write LDFLAGS="-lm -lcompiler_rt" pip install numpy=1=.12 with everything on the same line then LDFLAGS will be set for only the pip command, locally. Export works as well though.

@Mahesh222
Copy link

use this command:
python -m pip install pandas

@termux termux locked and limited conversation to collaborators Oct 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants