简体   繁体   中英

How to install python-numpy on OSX using apt-get?

so I have tried installing numpy using Homebrew . While it said on home-brew that I successfully installed it, the program I run couldn't detect it and it recommend using apt-get . So I got apt-get through fink, but I couldn't install numpy like I wanted to. The most relevant answer I found online is here: http://mrprajesh.blogspot.hk/2009/11/e-couldnt-find-package-on-apt-get.html But it only covers linux and I am not sure how to do the same on an OSX machine. Does anyone has experience with this?

Below is the error message. Any help is appreciated.

yings-mbp:madanalysis5 yvonne$ sudo apt-get install python-numpy

Reading Package Lists... Done

Building Dependency Tree... Done

E: Couldn't find package python-numpy

yings-mbp:madanalysis5 yvonne$ sudo apt-get install update

Password:

Reading Package Lists... Done

Building Dependency Tree... Done

E: Couldn't find package update

yings-mbp:madanalysis5 Sam$ 

In my opinion the best way to installing numpy and scipy, is just download Anaconda, even though its large, things are compiled and just work. If you need a smaller package then get miniconda, and run "conda install numpy". If you don't care for space, just get anaconda.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM