In this tutorial, we are going to introduce how to install Caffe without root privileges. We assume that you have installed Anaconda and CUDA on your PC.
Create Virtual Environment
conda create -n caffe
conda activate caffe
Install Dependencies
Since we decide not to use system dependencies, we need to install them in the Anaconda environment. To install, you can use the following commands:
conda install boost=1.65.1 openblas mkl mkl-include gflags glog lmdb leveldb h5py hdf5 scikit-image
conda install -c conda-forge ffmpeg opencv==3.4.3
Build Protocol Buffer (protobuf)
Please DO NOT install it with Anaconda, because it causes the problem of the undefined reference in the linking process.