あらまし
以下を参考に掲題のソフトウェアをインストールしたが、若干ハマったので記事にしました
- http://hiho-developer.hatenablog.com/entry/20131221/1387564021
- http://hiho-developer.hatenablog.com/entry/20131221/1387630390
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