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

How to install Numpy on OS 10.13.15 with Homebrew… #11454

Closed
Kabel77 opened this issue Jun 29, 2018 · 8 comments
Closed

How to install Numpy on OS 10.13.15 with Homebrew… #11454

Kabel77 opened this issue Jun 29, 2018 · 8 comments

Comments

@Kabel77
Copy link

Kabel77 commented Jun 29, 2018

I hope this is the right channel for my question and hope you could help. I tried to install Numpy via Homebrew with this line:

brew tap homebrew/science && brew install python numpy scipy matplotlib

And get the following error:

Error: homebrew/science was deprecated. This tap is now empty as all its formulae were migrated.

What went wrong here and how could I solve it? Thanks…

@rgommers
Copy link
Member

Homebrew is not the right way to install scientific python packages. Hence that deprecation message. If you're starting from scratch, use a distribution - see https://scipy.org/install.html

@matthew-brett
Copy link
Contributor

If you're already using Homebrew, my personal recommendation is to install Python with Homebrew, and then install numpy, scipy, matplotlib with pip. That's what I do, and I suspect that's what the Homebrew folks would recommend.

@Kabel77
Copy link
Author

Kabel77 commented Jun 29, 2018 via email

@pv
Copy link
Member

pv commented Jun 29, 2018

I note the page https://scipy.org/install.html does have exactly that homebrew instructions --- if it's not valid any more, should be removed

@rgommers
Copy link
Member

@Kabel77 Python 3.4 support is about to disappear from numpy and other packages, it's pretty much obsolete by now. You're better off install 3.6 at this point. Either with Homebrew, and then doing what @matthew-brett recommended, or just grab Anaconda py36.

@rgommers
Copy link
Member

Hmm, outdated install instructions, it seems like an ever-returning issue:(

@rgommers
Copy link
Member

rgommers commented Aug 3, 2018

No time to figure it out now; brew install python install Python 3.x, but does not alias python to python3? So just reopening.

I suspect the right thing to do is:

brew install python
# alias python to python3
python -m pip install numpy scipy ...

@mattip
Copy link
Member

mattip commented Aug 18, 2019

Closed by the PR to scipy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants