- 本电脑有2个版本python:python2.7和python3.5
首先将环境默认为python3.5 : https://blog.youkuaiyun.com/menglanzeng/article/details/82378135
sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 100
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 150
安装protobuf3.3.0:参考https://blog.youkuaiyun.com/phdsky/article/details/80994090
wget https://github.com/google/protobuf/archive/v3.3.0.zip
unzip protobuf
编译
cd protobuf-3.3.0/
./autogen.sh
./configure
make
make check
sudo make install
sudo ldconfig
protoc --version //查看版本
//python接口
cd protobuf-3.3.0/python/
python setup.py build
python setup.py install
python setup.py test
安装caffe
<