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

Comments

@Kabel77
Copy link

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

This comment has been minimized.

Copy link
Member

commented Jun 29, 2018

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

@rgommers rgommers closed this Jun 29, 2018
@matthew-brett

This comment has been minimized.

Copy link
Contributor

commented Jun 29, 2018

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

This comment has been minimized.

Copy link
Author

commented Jun 29, 2018

@pv

This comment has been minimized.

Copy link
Member

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

This comment has been minimized.

Copy link
Member

commented Jun 29, 2018

@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

This comment has been minimized.

Copy link
Member

commented Jun 29, 2018

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

@rgommers

This comment has been minimized.

Copy link
Member

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

This comment has been minimized.

Copy link
Member

commented Aug 18, 2019

Closed by the PR to scipy.

@mattip mattip closed this Aug 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants
You can’t perform that action at this time.