(前提是安裝python)
1、安裝pip
sudo apt-get install python-pip python-dev build-essential2、安裝依賴項
sudo pip install -r ./python/requirements.txt3、
cd caffe
make pycaffe
這裏面我運行時報了一個錯:解決方法我是按照下面這個方法修改的http://blog.csdn.net/liuweizj12/article/details/52138191
4、把caffe/python的路徑加到python路徑中:
python
import sys sys.path.append("路徑/caffe/python/")
exit()
再次運行python shell,運行import caffe如果沒有報錯了,就說明成功了
這裏面出現了一個錯誤
解決方案:http://blog.csdn.net/liuweizj12/article/details/52138191