はい、というわけで前回の続きです。
まずnumpyを修正する前段階で、pipでインストールを試みると
$ pip3.4 install scipy
Collecting scipy
Using cached scipy-0.16.0.tar.gz
~~~長いので省略~~~
File "/usr/lib/python3.4/site-packages/numpy/lib/__init__.py", line 17, in <module>
from . import scimath as emath
ImportError: cannot import name 'scimath'
----------------------------------------
Command "/usr/bin/python3 -c "import setuptools, tokenize;__file__='/tmp/pip-build-wnmvnz2p/scipy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-4c1qqgho-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-wnmvnz2p/scipy
うおお赤字なげえ・・
scimathとやらが存在せぬのか??
numpy修正後再挑戦
$ pip3.4 install scipy
Collecting scipy
Using cached scipy-0.16.0.tar.gz
Installing collected packages: scipy
Running setup.py install for scipy
止まったんか?と思うほどinstall始めてからめちゃ重いぞ・・・これ進んでんのか?
と、30分ほど放置したところで大量のコマンドが一気に出力され、やはり最後には同じエラーが・・
pip3でやったらどうやろか?→同じエラー
matplotlibのパッケージ漏れか?関連パッケージをぶち込む→同じエラー
gcc-mingwを入れろというコメントを発見、関連パッケージをぶち込む→同じエラー
いや、まだだ・・まだあきらめんぞ・・
http://stackoverflow.com/questions/22878109/error-installing-scipy-library-through-pip-on-python-3-compile-failed-with-err
ここで同様のエラーを発見、しかしcygwinにはlibatlas-base-devというパッケージはない様子
とりまそのatlasとやらは無視して再挑戦→エラー
http://shiroibanana.blogspot.jp/2013/06/python32matplotlibwindows.html
ここの方法を試す
$ easy_install-3.4 scipy-0.15.1-sse3.exe
Processing scipy-0.15.1-sse3.exe
scipy.cluster.tests.__pycache__.test_vq.cpython-34: module references __file__
~~~省略~~~
Processing dependencies for scipy==0.15.1
Finished processing dependencies for scipy==0.15.1
お?できたんか?
とりあえずテスト
>>import scipy
>>scipy.test()
→エラーががが
もうだめだぁ・・・おしまいだぁ・・・
まあこの後も色々試してみたのですが、結局導入できませんでした。
BLAS, LAPACK, ATLASあたりのライブラリが必要?らしいのですが、よくわからん・・
というわけで結論→cygwinに固執するな、さっさとanaconda使え!!!