Skip to content

Instantly share code, notes, and snippets.

@aowal
Last active February 4, 2018 06:37
Show Gist options
  • Save aowal/a6f845769004165f243d31ce0c3d3b4f to your computer and use it in GitHub Desktop.
Save aowal/a6f845769004165f243d31ce0c3d3b4f to your computer and use it in GitHub Desktop.
Caffe Installation in Linux
First download all dependencies:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libhdf5-serial-dev protobuf-compiler
sudo apt-get install --no-install-recommends libboost-all-dev
sudo apt-get install libgflags-dev libgoogle-glog-dev liblmdb-dev
sudo apt-get install libatlas-base-dev
git clone https://github.com/BVLC/caffe.git
cd caffe
for req in $(cat python/requirements.txt); do sudo pip install $req; done
sudo mkdir build
cd build
sudo cmake -DCPU_ONLY=1 ..
sudo make all
sudo make test
sudo make runtest
sudo make pycaffe
conda install libgcc
vi ~/.bashrc
export PYTHONPATH="home//Documents/caffe/python:$PYTHONPATH"
source ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment