Last active
February 4, 2018 06:37
-
-
Save aowal/a6f845769004165f243d31ce0c3d3b4f to your computer and use it in GitHub Desktop.
Caffe Installation in Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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