首页 > 代码库 > [转]linux14.04下caffe的安装步骤
[转]linux14.04下caffe的安装步骤
1.官网下载caffe-master,下载地址:https://github.com/BVLC/caffe,下载到downloads下;
2.解压安装包至downloads下;
3.先安装boost和OpenCV,因为这两个比较大,命令为:
sudo apt-get install libopencv-dev
sudo apt-get install libboost-dev
4.安装完成后,继续安装caffe依赖项:
sudo apt-get install $APT_FLAGS libprotobuf-dev libleveldb-dev libsnappy-dev libhdf5-serial-dev libgflags-dev libgoogle-glog-dev liblmdb-dev protobuf-compiler libatlas-base-dev
sudo apt-get install $APT_FLAGS Python-dev python-pip gfortran
sudo apt-get install $APT_FLAGS cython python-numpy python-scipy python-skimage python-matplotlib python-h5py python-leveldb python-networkx python-pandas python-dateutil python-protobuf python-gflags python-yaml python-pil
5.安装cmake,sudo apt-get installl cmake-qt-gui;
6.在 /downloads/caffe-master/ 下新建build,存放编译后的文件。
7.定位到build目录下,make 完后 make install;
8.将/downloads/caffe-master/ build/install/python/下的caffe文件夹 复制到 /usr/lib/python2.7/dist-packages/下即可。
9.打开终端,输入python ,输入import caffe,检查是否安装成功。
[转]linux14.04下caffe的安装步骤