Pythonでchainerを使ってディープラーニングを使ってみたいと思い、始めようと思ったら早速エラーでつまずきました。
Python
1from chainer import cuda, Variable, FunctionSet, optimizers
/Users/.pyenv/versions/3.6.1/lib/python3.6/site-packages/chainer/_environment_check.py:38: UserWarning: Accelerate has been detected as a NumPy backend library. vecLib, which is a part of Accelerate, is known not to work correctly with Chainer. We recommend using other BLAS libraries such as OpenBLAS. For details of the issue, please see https://docs.chainer.org/en/stable/tips.html#mnist-example-does-not-converge-in-cpu-mode-on-mac-os-x. Also note that Chainer does not officially support Mac OS X. Please use it at your own risk. ''') # NOQA Traceback (most recent call last): File "deep.py", line 5, in <module> from chainer import cuda, Variable, FunctionSet, optimizers ImportError: cannot import name 'FunctionSet'
以上のようなエラーが出ました。
https://docs.chainer.org/en/stable/tips.html#mnist-example-does-not-converge-in-cpu-mode-on-mac-os-x.
OpenBLASなどを用いることを勧められたのでこのページからインストールしようと思い、
$ brew tap homebrew/science $ brew install openblas $ brew install numpy --with-openblas
Homebrewで以上の文を実行したところ、
brew tap homebrew/science ここでエラー発生しました Error: homebrew/science was deprecated. This tap is now empty as all its formulae were migrated.
下の2つはうまくインストールできました。
どのようにするとうまくいくのでしょうか。
よろしくお願い致します。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。