Monthly Archives: 11月 2016

numpyインストール

※日本語パス(ダウンロードとか)だとエラーが出る

(http://python.dogrow.net/?p=157 : 参考)

numpyのインストール
これって配列計算とかを高速で行うモジュールらしい

git clone https://github.com/numpy/numpy.git
cd numpy
python setup.py build

cythonizeがfailedとか出たのでcythonを入れる

git clone https://github.com/cython/cython.git
cd cython
python setup.py build
python setup.py install

インストール後にnumpyをbuild

cd ../numpy
python setup.py build
python setup.py install

テスト実行

python -c “immport numpy; print(numpy.__version__); numpy.test()”

なんかfortranとかなんか入れなきゃダメかもしれないけどそれはその時に


matplotlibインストール

ソフトに必要なmatplotlibのプラグインをインストールする

1.pip

https://pip.pypa.io/en/latest/installing/ でgetpip.pyをダウンロードし、python getpip.pyを実行

2.matplotlib(http://qiita.com/como1559/items/feac9bacbbf362817c66 : 参考)

pip install matplotlib ⏎