MacBook

for Pylearn2

sudo easy_install pip

brew install libyaml

sudo pip install pyyaml

sudo pip install pillow

sudo pip install nose #for test-suite

sudo pip install --upgrade --no-deps git+git://github.com/Theano/Theano.git

sudo pip install cython

mkdir ~/git

cd ~/git

git clone git://github.com/lisa-lab/pylearn2.git

cd pylearn2

sudo python setup.py develop

Environment variable

export PYLEARN2_DATA_PATH=~/data_path

export PYLEARN2_VIEWER_COMMAND="open -Wn"export PATH=~/git/pylearn2/pylearn2/scripts:$PATH

for Caffe

brew install pyenv

vi ~/.bash_profile

export PYENV_ROOT="$HOME/.pyenv"

export PATH="$PYENV_ROOT/bin:$PATH"

eval "$(pyenv init -)"

pyenv install 2.7.9

pyenv install anaconda-2.1.0

pyenv rehash

sudo pyenv local anaconda-2.1.0

sudo pyenv global anaconda-2.1.0

http://caffe.berkeleyvision.org/installation.html

http://smrmkt.hatenablog.jp/entry/2015/02/11/195213

http://ichyo.jp/posts/caffe-install/

https://gist.github.com/yusuketomoto/da4ab182c1693fc3995e

install protobuf250 instead of protobuf

not found for architecture x86_64

a workaround is to force set the following:

CXXFLAGS += -stdlib=libstdc++

LINKFLAGS += -stdlib=libstdc++

brew force link opencv

need to export DYLD_FALLBACK_LIBRARY_PATH