I had a lot of trouble trying to install Caffe on my Mac, so I'll leave it as a note. Environment: OSX 10.11.1 (El Captain) MacBook Pro 13inch, Early 2011 (<-I have to buy a new one soon.) Only install in CPU mode.
I referred to the following article. ① http://qiita.com/Kajiyu/items/e8ad0ccd878328a21e8a ② http://d.hatena.ne.jp/shu223/20160103/1452000295
I proceeded with the installation referring to the above article.
$ make runtest
I proceeded without problems, but
$ import caffe
It became Segmentation fault: 11.
I reviewed Makefile.config with reference to article (2), but it didn't fix.
PYTHON_INCLUDE := /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/include/python2.7
/usr/local/lib/python2.7/site-packages/numpy/core/include/
PYTHON_LIB := /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib
$ cmake .
Looking at the log of
-- Python:
-- Interpreter : /usr/local/bin/python2.7 (ver. 2.7.11)
-- Libraries : /usr/lib/libpython2.7.dylib (ver 2.7.10)
And the setting of Makefile.config was not reflected.
$ cmake . -DPYTHON_LIBRARY=/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/libpython2.7.dylib
And by directly specifying the path, it is safe
$ import caffe
It is now possible.
Recommended Posts