最近心血来潮,想趁着实习之前一周空闲的时间玩玩各种 Deep Learning 的热门工具(Caffe, Theano 之类),结果却深陷安装和配置环境的痛苦当中。。。安装Caffe花费了我两天时间,在各种文档教程中绕了不少圈子。据不完全统计,对我比较有帮助的一些参考资料如下:
export PATH=/Developer/NVIDIA/CUDA-7.0/bin:$PATH
export DYLD_LIBRARY_PATH=/Developer/NVIDIA/CUDA-7.0/lib:$DYLD_LIBRARY_PATH
for x in snappy leveldb gflags glog szip hdf5 lmdb homebrew/science/opencv;
do
    brew uninstall $x;
    brew install --fresh -vd $x;
done
brew uninstall --force protobuf; brew install --with-python --fresh -vd protobuf
brew uninstall boost boost-python; brew install --fresh -vd boost boost-pythongit clone https://github.com/BVLC/caffe.git cd caffe cp Makefile.config.example Makefile.config在Makefile.config中:
mkdir build cd build cmake ..
make all make runtest
MAC OS X10.10下Caffe无脑安装(CPU ONLY)
原文:http://blog.csdn.net/yjn03151111/article/details/46353013