LoginSignup
17
15

More than 5 years have passed since last update.

SciPyとmatplotlibのインストール(Python)

Last updated at Posted at 2013-04-29

Python用の科学計算モジュールであるSciPyと、
グラフ作成モジュールのmatplotlibをインストールします。
Homebrewを使います。

pythonが入ってなければまず

brew install python

続けて

brew install gfortran
pip install numpy
pip install scipy
pip install matplotlib

scipyのインストールにgfortran, numpyが必要なようです。
warningがいっぱい出ますが無視で

brewでpythonを入れた場合、pipの場所は
/usr/local/lib/python2.7/site-packages/
なので、PYTHONPATHを通しておきます。
Eclipseの場合は、環境設定のPyDev→Interpreter - Python→newで
browseから/usr/local/Cellar/python/2.7.4/bin/pythonを選択すると、
PYTHONPATHを通す場所の一覧が表示されるので、全部にチェックを入れて
OKすれば良いです。

(追記)
easy_installが廃止されてpipが標準装備になったのは最新版(2.7.4)からのようです。
pythonのバージョンが古い場合は更新してください。

17
15
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
17
15