LoginSignup
5
7

More than 5 years have passed since last update.

OS XにHomebrewでNumPy, SciPy, Matplotlibを入れる(2015/11現在)

Posted at

あらまし

以下を参考に掲題のソフトウェアをインストールしたが、若干ハマったので記事にしました

SciPyインストール

元記事の通り、以下をインストールします。

brew update
brew install python3
pip3 install --upgrade setuptools
pip3 install --upgrade pip
brew linkapps
pip3 install numpy

ここでハマりその1。

ここまでは良かったのですが、gfortranのインストールでエラーが出ました。
曰く、gfortranはgccパッケージに吸収されたとか。

なので、brew install gfortranの代わりに

brew install gcc

そして元記事に戻り、

easy_install cython
brew install swig
pip3 install git+http://github.com/scipy/scipy/

これでSciPyはインストール出来ました。

matplotlib

ここでハマり?その2。
元記事ではfreetypeのパスがうまくなく、シンボリックリンクを貼っていましたが、
現在は不要のようです。

brew install freetype
# sudo ln -s /usr/local/include/freetype2 /usr/include/freetype ## 不要!
pip3 install matplotlib

IPython

元記事どおり、以下でインストールできます。

pip3 install ipython

参考記事

5
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
7