1、环境准备:
Homebrew
/usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
Anaconda 2.7
https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda2-4.3.0-MacOSX- x86_64.pkg
2、安装依赖(版本很重要)
brew install snappy leveldb gflags glog szip hdf5 lmdb opencv;
brew install --with-python --fresh -vd protobuf;
安装boost 和boost_python(!!!注意版本)
安装指定版本1.59
brew install boost@1.59 boost-python@1.59
3、下载Caffe源码
git clone https://github.com/BVLC/caffe.git
cd caffe
cp Makefile.conf
Mac 安装配置Caffe-CPU
最新推荐文章于 2022-01-17 16:45:05 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)