Install Caffe on Mac

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

Install Caffe on Mac
Install pyenv on mac
Install Ansible on Mac
Install Python on Mac
Install Python 3 on Mac
Install Python 3.4 on Mac
Install mecab on mac
Install mecab-python on Mac
Install pygame on python3.4 on mac
Install module on Anaconda (Mac)
Install OpenPose on mac (Catalina)
Install numba on your Mac
Install pandas 0.14 on python3.4 [on Mac]
Install Django on your Mac
Install pillow on Mac OSX 10.9
[Mac] Tips: Install pyquery on Mac [pyquery]
Install Caffe on Ubuntu 14.04 (GPU)
Install anaconda on Mac → Add Library
How to install mysql-connector-python on mac
Steps to install matplotlib on Mac
Install Sphinx on Mac OS X
Install Python 3.7 Anaconda on MAC, but Python 2
Install Scipy on Mac OS Sierra
Install python3 on Mac (El Capitan)
How to install OpenCV on Mac
Install mitmproxy on Mac OS X
Install VirtualBox on CentOS 7 on VirtualBox (mac + vagrant)
Steps to install python3 on mac
Install pgmagick on Mac OS X 10.9
python on mac
Install opencv on Mac using Anaconda Navigator
Install anaconda on a new Mac anyway
Install mecab on Marvericks
Install TensorFlow on Ubuntu
Install python on WSL
Install pip on Mavericks
Install mongodb on termux
Install Scrapy on python3
How to install Deep Learning framework Caffe on Mac in CPU mode
Install docker on Fedora31
Pyenv + virtualenv on Mac
Install numba on CentOS 7.2
Install Plone (4.3.6) on MacOSX (10.10.3)
Install PySide2 on Ubuntu
Install Python3.4 on CentOS 6.6
numba installation on mac
Install gensim on Marvericks
Install JModelica on Ubuntu
Install Anaconda on Windows 10
Install numpy on Marvericks
Install python on windows
Install enebular-agent on Chromebook
Install pycuda on Windows10
Install mecab-python on CentOS
Install Python 2.7.3 on CentOS 5.4
Install aws-cli on MacPorts
Install pygraphviz on Windows 10
Install Docker on AWS
Install Python 3.3 on Ubuntu 12.04
Install Chainer 1.5.0 on Windows
Install Theano on Ubuntu 12.04