相信做目标检测的同学都知道facebook已经开源了一个集成很多先进目标检测算法的库,但是官网教程主要针对采用ubuntu系统python来编译安装caffe2,由于采用深度学习服务器没有sudo权限,我花费了一天半安装GPU版的caffe2,最多的错误就是protobuff错误!!很难搞,做了很多测试才弄懂,下面做一个简单的总结,希望能帮助后来的初学者:
编译Anaconda下的Caffe2常出现的protobuff错误如下:

../lib/libcaffe2.so: undefined reference to `google::protobuf::internal::OnShutdownDestroyString(std::string const*)'
../lib/libcaffe2.so: undefined reference to `google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(int, std::string const&, google::protobuf::io::CodedOutputStream*)'
../lib/libcaffe2.so: undefined reference to `google::protobuf::Message::ShortDebugString() const'
../lib/libcaffe2.so: undefined reference to `google::protobuf::internal::WireFormatLite::WriteString(int, std::string const&, google::protobuf::io::CodedOutputStream*)'
../lib/libcaffe2.so: undefined reference to `google::protobuf::internal::ParseNamedEnum(google::protobuf::EnumDescriptor const*, std::string const&, int*)'
../lib/libcaffe2.so: undefined reference to `google::protobuf::internal::WireFormatLite::ReadBytes(google::protobuf::io::CodedInputStream*, std::string*)'
../lib/libcaffe2.so: undefined reference to `google::protobuf::Message::InitializationErrorString() const'
collect2: error: ld returned 1 exit status
make[2]: *** [bin/blob_test] Error 1
make[1]: *** [caffe2/CMakeFiles/blob_test.dir/all] Error 2
Linking CXX shared module python/caffe2_pybind11_state.so
[ 92%] Built target caffe2_pybind11_state
make: *** [all] Error 2

下面,是我探索出的安装方法(仅供参考!)


Anaconda2+自建python2.7的虚拟环境:py27+Caffe2GPU版

GPU的cuda配置不再本教程范围介绍之内!请自行配置

下载anconda到用户的home路径下就不介绍了,以我的/home/slb/anaconda2为例介绍:
1.确定anconda的bin路径在普通用户的.bashrc中,如:

export PATH="/home/slb/anaconda2/bin:$PATH"

路径里不要添加如下路径,以免系统的Protobuf和conda环境的Protobuf冲突!:

#export PYTHONPATH=/usr/local:$PYTHONPATH
#export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

2.创建名为py27的conda虚拟环境,以避免与Tensorflow和老版Caffe的干扰
如下:

conda create -n py27 python=2.7

也可以自己起一个名字如叫:py27-caffe2

3.让管理员执行一下如下命令(注,这步貌似不是必须的)

# for Ubuntu 14.04
sudo apt-get install -y --no-install-recommends libgflags2
# for Ubuntu 16.04
sudo apt-get install -y --no-install-recommends libgflags-dev
sudo apt-get install -y --no-install-recommends \
      libgoogle-glog-dev \
      libgtest-dev \
      libiomp-dev \
      libleveldb-dev \
      liblmdb-dev \
      libopencv-dev \
      libopenmpi-dev \
      libsnappy-dev \
      libprotobuf-dev \
      openmpi-bin \
      openmpi-doc \
      protobuf-compiler \
      python-dev \
      python-pip

3.安装caffe2到Caffe2_ROOT,如我的Caffe2安装在/home/slb/softwares/目录下,具体步骤是:

cd /home/slb/softwares/
git clone --recursive https://github.com/caffe2/caffe2.git && cd caffe2

激活py27的python环境,进行caffe2的编译并安装到虚拟环境的库中
source activate py27
安装依赖:

conda install -y \
    future \
    gflags \
    glog \
    lmdb \
    mkl \
    mkl-include \
    numpy \
    opencv \
    protobuf \
    snappy \
    six

再运行一遍下面指令:

conda install -y --channel https://conda.anaconda.org/conda-forge  gflags glog  numpy protobuf(这步很关键,不然会protobuf老报错!在conda安装包的时候最好指定从官网正式发布包源安装!!因为直接用conda install安装的包可能不稳定)

尤其是编译时会用到conda安装的opencv和protobuff
查看可得到的protobuf

protoc --version

显示为libprotoc 3.5.1,而不是usr/local/.下的 libprotoc即表明该虚拟环境下不是系统路径下的protobuf,但是即便有干扰我们也不怕,看下面的步骤:

cd到Caffe2目录下:

mkdir build && cd build

然后cmake到上一层目录下,即按照下面的“尝试1”进行操作(按照尝试2操作会安装失败)

尝试1:成功测试!
:成功安装的话python的site-packages目录下应该有caffe2和caffe文件夹!
cmake指令为:

~/softwares/caffe2/build$ cmake .. -DCMAKE_PREFIX_PATH=$HOME/anaconda2/envs/py27  -DCMAKE_INSTALL_PREFIX=$HOME/anaconda2/envs/py27
注:当时把py27写错了,以至于安装到其他环境了,注意粘贴时注意!

其中:

-DCMAKE_PREFIX_PATH=$HOME/anaconda2/envs/py27保证编译搜索库时先搜索虚拟环境中可用的库
-DCMAKE_INSTALL_PREFIX=$HOME/anaconda2/envs/py27保证最终的caffe2安装到你的虚拟环境的python包文件夹下

cmake输出信息:

-- GCC 4.8.4: Adding gcc and gcc_s libs to link line
-- Include NCCL operators
-- Including image processing operators
-- Excluding video processing operators due to no opencv
-- Excluding mkl operators as we are not using mkl
-- Include Observer library
-- Automatically generating missing __init__.py files.
-- 
-- ******** Summary ********
-- General:
--   CMake version         : 2.8.12.2
--   CMake command         : /usr/bin/cmake
--   Git version           : v0.8.1-1061-g5d7ef79
--   System                : Linux
--   C++ compiler          : /usr/bin/c++
--   C++ compiler version  : 4.8.4
--   Protobuf compiler     : /home/slb/anaconda2/envs/py27/bin/protoc
--   Protobuf include path : /home/slb/anaconda2/envs/py27/include
--   Protobuf libraries    : optimized;/home/slb/anaconda2/envs/py27/lib/libprotobuf.so;debug;/home/slb/anaconda2/envs/py27/lib/libprotobuf.so;-lpthread
--   CXX flags             :  -Wno-deprecated -std=c++11 -O2 -fPIC -Wno-narrowing -Wno-invalid-partial-specialization
--   Build type            : Release
--   Compile definitions   : 
-- 
--   BUILD_BINARY          : ON
--   BUILD_DOCS            : OFF
--   BUILD_PYTHON          : ON
--     Python version      : 2.7.11
--     Python library      : /home/slb/anaconda2/envs/py27/lib/libpython2.7.so
--   BUILD_SHARED_LIBS     : ON
--   BUILD_TEST            : ON
--   USE_ATEN              : OFF
--   USE_ASAN              : OFF
--   USE_CUDA              : ON
--     CUDA version        : 8.0
--     CuDNN version       : 6.0.21
--     CUDA root directory : /usr/local/cuda
--     CUDA library        : /usr/lib/x86_64-linux-gnu/libcuda.so
--     CUDA NVRTC library  : /usr/local/cuda/lib64/libnvrtc.so
--     CUDA runtime library: /usr/local/cuda/lib64/libcudart.so
--     CUDA include path   : /usr/local/cuda/include
--     NVCC executable     : /usr/local/cuda/bin/nvcc
--     CUDA host compiler  : /usr/bin/cc
--   USE_EIGEN_FOR_BLAS    : 1
--   USE_FFMPEG            : OFF
--   USE_GFLAGS            : ON
--   USE_GLOG              : ON
--   USE_GLOO              : ON
--   USE_LEVELDB           : ON
--     LevelDB version     : 1.15
--     Snappy version      : ..
--   USE_LITE_PROTO        : OFF
--   USE_LMDB              : ON
--     LMDB version        : 0.9.21
--   USE_METAL             : OFF
--   USE_MKL               : 
--   USE_MOBILE_OPENGL     : OFF
--   USE_MPI               : ON
--   USE_NCCL              : ON
--   USE_NERVANA_GPU       : OFF
--   USE_NNPACK            : ON
--   USE_OBSERVERS         : ON
--   USE_OPENCV            : ON
--     OpenCV version      : 3.3.0
--   USE_OPENMP            : OFF
--   USE_PROF              : OFF
--   USE_REDIS             : OFF
--   USE_ROCKSDB           : OFF
--   USE_THREADS           : ON
--   USE_ZMQ               : OFF

尝试2:失败!!,虽成功编译但没有成功安装到python路径中,原因:cmake时输出信息显示:BUILD_PYTHON : OFF,在次编译查找到是因为CMAKE后面指令中的python路径指定造成的,不应该有相关的指定

cmake .. -DCMAKE_PREFIX_PATH=$HOME/anaconda2/envs/py27  -DCMAKE_INSTALL_PREFIX=$HOME/anaconda2/envs/py27 -DPYTHON_LIBRARY=$(python2 -c "from distutils import sysconfig; print(sysconfig.get_python_lib())") -DPYTHON_INCLUDE_DIR=$(python2 -c "from distutils import sysconfig; print(sysconfig.get_python_inc())")

其中:

-DCMAKE_PREFIX_PATH=$HOME/anaconda2/envs/py27保证编译搜索库时先搜索虚拟环境中可用的库
-DCMAKE_INSTALL_PREFIX=$HOME/anaconda2/envs/py27保证最终的caffe2安装到你的虚拟环境的python包文件夹下
-DPYTHON_LIBRARY=$(python2 -c "from distutils import sysconfig; print(sysconfig.get_python_lib())") -DPYTHON_INCLUDE_DIR=$(python2 -c "from distutils import sysconfig; print(sysconfig.get_python_inc())")再次保证编译时能先去激活环境下的python中找可用的libprotoc(例如当系统的libprotoc低版本时,如2.5版本的就会冲突和python中的protoc库,从而导致无法顺利安装)

cmake配置后的输出信息如下:仅供参考

-- GCC 4.8.4: Adding gcc and gcc_s libs to link line
-- Include NCCL operators
-- Including image processing operators
-- Excluding video processing operators due to no opencv
-- Excluding mkl operators as we are not using mkl
-- Include Observer library
-- 
-- ******** Summary ********
-- General:
--   CMake version         : 2.8.12.2
--   CMake command         : /usr/bin/cmake
--   Git version           : v0.8.1-1061-g5d7ef79
--   System                : Linux
--   C++ compiler          : /usr/bin/c++
--   C++ compiler version  : 4.8.4
--   Protobuf compiler     : /home/slb/anaconda2/envs/caffe2-py27/bin/protoc
--   Protobuf include path : /home/slb/anaconda2/envs/caffe2-py27/include
--   Protobuf libraries    : optimized;/home/slb/anaconda2/envs/caffe2-py27/lib/libprotobuf.so;debug;/home/slb/anaconda2/envs/caffe2-py27/lib/libprotobuf.so;-lpthread
--   CXX flags             :  -Wno-deprecated -std=c++11 -O2 -fPIC -Wno-narrowing -Wno-invalid-partial-specialization
--   Build type            : Release
--   Compile definitions   : 
-- 
--   BUILD_BINARY          : ON
--   BUILD_DOCS            : OFF
--   BUILD_PYTHON          : OFF
--   BUILD_SHARED_LIBS     : ON
--   BUILD_TEST            : ON
--   USE_ATEN              : OFF
--   USE_ASAN              : OFF
--   USE_CUDA              : ON
--     CUDA version        : 8.0
--     CuDNN version       : 6.0.21
--     CUDA root directory : /usr/local/cuda
--     CUDA library        : /usr/lib/x86_64-linux-gnu/libcuda.so
--     CUDA NVRTC library  : /usr/local/cuda/lib64/libnvrtc.so
--     CUDA runtime library: /usr/local/cuda/lib64/libcudart.so
--     CUDA include path   : /usr/local/cuda/include
--     NVCC executable     : /usr/local/cuda/bin/nvcc
--     CUDA host compiler  : /usr/bin/cc
--   USE_EIGEN_FOR_BLAS    : 1
--   USE_FFMPEG            : OFF
--   USE_GFLAGS            : ON
--   USE_GLOG              : ON
--   USE_GLOO              : ON
--   USE_LEVELDB           : ON
--     LevelDB version     : 1.15
--     Snappy version      : ..
--   USE_LITE_PROTO        : OFF
--   USE_LMDB              : ON
--     LMDB version        : 0.9.21
--   USE_METAL             : OFF
--   USE_MKL               : 
--   USE_MOBILE_OPENGL     : OFF
--   USE_MPI               : ON
--   USE_NCCL              : ON
--   USE_NERVANA_GPU       : OFF
--   USE_NNPACK            : ON
--   USE_OBSERVERS         : ON
--   USE_OPENCV            : ON
--     OpenCV version      : 2.4.13.4
--   USE_OPENMP            : OFF
--   USE_PROF              : OFF
--   USE_REDIS             : OFF
--   USE_ROCKSDB           : OFF
--   USE_THREADS           : ON
--   USE_ZMQ               : OFF
-- Configuring done
-- Generating done
-- Build files have been written to: /home/slb/softwares/caffe2/build

最后一步:

make install

编译并把编译好的库安装到你的虚拟环境的python库中,安装成功, 最后会输入如下信息:

-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/mobile/contrib/ios/mpscnn/mpscnn_context.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/mobile/contrib/ios/mpscnn/mpscnn.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/mobile/contrib/ios/ios_caffe_defines.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/mobile/contrib/libvulkan-stub
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/mobile/contrib/libvulkan-stub/include
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/mobile/contrib/libvulkan-stub/include/libvulkan-stub.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/mobile/contrib/libvulkan-stub/include/vulkan
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/mobile/contrib/libvulkan-stub/include/vulkan/vk_platform.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/mobile/contrib/libvulkan-stub/include/vulkan/vulkan.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/mobile/contrib/libvulkan-stub/src
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/mobile/contrib/snpe
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/mobile/contrib/snpe/snpe_ffi.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/sgd
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/sgd/adam_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/sgd/adagrad_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/sgd/rmsprop_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/sgd/ftrl_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/sgd/iter_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/sgd/learning_rate_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/sgd/fp32_momentum_sgd_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/sgd/fp16_momentum_sgd_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/sgd/learning_rate_functors.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/sgd/yellowfin_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/sgd/momentum_sgd_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/transforms
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/transforms/pattern_net_transform.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/transforms/common_subexpression_elimination.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/transforms/single_op_transform.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/transforms/conv_to_nnpack_transform.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/cuda_rtc
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/cuda_rtc/common_rtc.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/contrib
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/contrib/shm_mutex
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/contrib/shm_mutex/shm_mutex.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/contrib/aten
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/contrib/aten/docs
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/contrib/aten/aten_op_template.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/contrib/warpctc
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/contrib/warpctc/ctc_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/contrib/prof
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/contrib/prof/htrace_conf.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/contrib/prof/prof_dag_stats_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/contrib/prof/prof_dag_net.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/contrib/script
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/contrib/script/error_report.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/contrib/script/tree_views.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/contrib/script/compiler.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/contrib/script/examples
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/contrib/script/tree.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/contrib/script/lexer.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/contrib/script/parser.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/contrib/docker-ubuntu-14.04
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/contrib/torch
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/contrib/torch/torch_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/contrib/tensorboard
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/contrib/nccl
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/contrib/nccl/cuda_nccl_gpu.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/contrib/nervana
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/contrib/nervana/nervana_c_api.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/contrib/nervana/nervana.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/contrib/nnpack
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/contrib/gloo
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/contrib/gloo/common.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/contrib/gloo/allgather_ops.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/contrib/gloo/allreduce_ops.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/contrib/gloo/common_world_ops.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/contrib/gloo/store_handler.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/contrib/gloo/context.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/contrib/gloo/barrier_ops.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/contrib/gloo/broadcast_ops.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/python
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/python/mkl
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/python/operator_test
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/python/rnn
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/python/layers
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/python/examples
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/python/docs
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/python/helpers
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/python/modeling
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/python/pybind_state_dlpack.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/python/pybind_state.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/python/test
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/python/predictor
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/python/models
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/python/models/seq2seq
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/python/tutorials
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/python/tutorials/images
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/python/tutorials/experimental
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/python/tutorials/py_gen
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/python/mint
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/python/mint/templates
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/python/mint/static
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/python/mint/static/css
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/python/dlpack.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/fused_rowwise_8bit_conversion_ops.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/softmax_shared.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/recurrent_network_blob_fetcher_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/cross_entropy_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/slice_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/reshape_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/reducer_functors.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/expand_squeeze_dims_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/elementwise_logical_ops.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/roi_align_gradient_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/order_switch_ops.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/zero_gradient_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/flexible_top_k.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/prepend_dim_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/string_ops.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/boolean_unmask_ops.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/conv_transpose_op_mobile.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/lengths_reducer_rowwise_8bit_ops.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/loss_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/normalize_l1_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/conv_transpose_unpool_op_base.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/sparse_normalize_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/create_scope_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/rmac_regions_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/conv_op_cache_cudnn.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/concat_split_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/pad_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/batch_sparse_to_dense_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/quant_decode_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/percentile_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/square_root_divide_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/map_ops.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/local_response_normalization_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/remove_data_blocks_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/conditional_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/gru_unit_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/box_with_nms_limit_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/partition_ops.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/locally_connected_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/sequence_ops.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/ngram_ops.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/operator_fallback_gpu.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/prefetch_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/text_file_reader_utils.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/reduction_front_back_ops.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/apmeter_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/math_ops.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/generate_proposals_op_util_boxes.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/top_k.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/conv_op_shared.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/dropout_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/lstm_unit_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/half_float_ops.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/utility_ops.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/accuracy_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/instance_norm_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/locally_connected_op_impl.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/one_hot_ops.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/key_split_ops.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/reverse_packed_segs_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/bbox_transform_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/max_pool_with_index.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/negate_gradient_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/elementwise_op_test.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/conv_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/flatten_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/piecewise_linear_transform_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/sparse_to_dense_mask_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/generate_proposals_op_util_nms.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/conv_pool_op_base.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/pack_segments.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/stop_gradient.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/roi_pool_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/spatial_softmax_with_loss_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/gather_ranges_to_dense_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/prelu_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/swish_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/pack_rnn_sequence_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/given_tensor_fill_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/relu_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/mod_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/filler_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/weighted_sample_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/assert_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/spatial_batch_norm_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/conv_transpose_op_impl.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/summarize_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/distance_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/elementwise_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/recurrent_network_executor.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/deform_conv_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/rowmul_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/find_duplicate_elements_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/elu_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/normalize_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/margin_ranking_criterion_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/conv_op_impl.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/do_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/channel_stats_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/accumulate_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/segment_reduction_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/tile_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/recurrent_network_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/counter_ops.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/lengths_top_k_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/scale_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/batch_matmul_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/recurrent_op_cudnn.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/listwise_l2r_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/layer_norm_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/leaky_relu_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/multi_class_accuracy_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/find_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/tt_linear_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/while_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/dataset_ops.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/h_softmax_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/clip_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/recurrent_network_executor_gpu.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/cast_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/sinusoid_position_encoding_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/conv_transpose_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/recurrent_network_executor_incl.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/resize_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/lengths_reducer_ops.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/logit_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/lpnorm_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/shape_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/onnx_while_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/load_save_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/deform_conv_op_impl.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/replace_nan_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/space_batch_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/if_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/transpose_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/matmul_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/roi_align_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/boolean_mask_ops.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/channel_backprop_stats_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/softmax_with_loss_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/selu_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/batch_box_cox_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/pool_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/feed_blob_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/lengths_tile_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/channel_shuffle_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/lengths_reducer_fused_8bit_rowwise_ops.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/im2col_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/minmax_ops.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/softplus_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/perplexity_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/reduction_ops.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/generate_proposals_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/merge_id_lists_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/elementwise_linear_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/softmax_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/no_default_engine_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/tensor_protos_db_input.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/cosine_embedding_criterion_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/conv_transpose_op_mobile_impl.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/batch_gather_ops.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/fully_connected_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/sparse_to_dense_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/free_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/index_hash_ops.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/rank_loss_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/operators/glu_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/experiments
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/experiments/python
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/experiments/operators
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/experiments/operators/fully_connected_op_sparse.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/experiments/operators/sparse_matrix_reshape_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/experiments/operators/tt_pad_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/experiments/operators/sparse_funhash_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/experiments/operators/funhash_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/experiments/operators/fully_connected_op_decomposition.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/experiments/operators/fully_connected_op_prune.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/experiments/operators/tt_contraction_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/distributed
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/distributed/file_store_handler_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/distributed/redis_store_handler_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/distributed/redis_store_handler.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/distributed/store_handler.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/distributed/file_store_handler.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/distributed/store_ops.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/test
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/test/assets
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/observers
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/observers/time_observer.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/observers/operator_attaching_net_observer.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/observers/runcnt_observer.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/proto
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/db
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/db/create_db_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/binaries
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/share
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/share/contrib
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/share/contrib/zstd
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/share/contrib/zstd/quant_decomp_zstd_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/share/contrib/observers
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/share/contrib/observers/net_observer_reporter_print.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/share/contrib/observers/perf_observer.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/share/contrib/observers/observer_config.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/share/contrib/observers/net_observer_reporter.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/share/contrib/binaries
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/share/contrib/binaries/caffe2_benchmark
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/share/contrib/nnpack
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/video
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/video/video_io.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/video/optical_flow.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/video/video_input_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/video/video_decoder.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/image
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/image/image_input_op.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/image/transform_gpu.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/utils
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/utils/mixed_utils.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/utils/conversions.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/utils/zmq_helper.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/utils/math.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/utils/cpu_neon.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/utils/murmur_hash3.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/utils/smart_tensor_printer.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/utils/threadpool
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/utils/threadpool/ThreadPool.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/utils/threadpool/pthreadpool_impl.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/utils/threadpool/WorkersPool.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/utils/threadpool/ThreadPoolCommon.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/utils/threadpool/pthreadpool.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/utils/thread_pool.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/utils/simple_queue.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/utils/signal_handler.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/utils/cblas.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/utils/string_utils.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/utils/cpuid.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/utils/proto_utils.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/utils/eigen_utils.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/utils/cast.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/utils/fixed_divisor.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/utils/math-detail.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/perfkernels
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/perfkernels/common.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/perfkernels/typed_axpy.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/perfkernels/cvtsh_ss_bugfix.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/perfkernels/embedding_lookup.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/perfkernels/fused_8bit_rowwise_embedding_lookup.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/core/macros.h
-- Installing: /home/slb/anaconda2/envs/py27/lib/libcaffe2.so
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/lib/libcaffe2.so"
-- Installing: /home/slb/anaconda2/envs/py27/lib/libcaffe2_gpu.so
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/lib/libcaffe2_gpu.so"
-- Installing: /home/slb/anaconda2/envs/py27/test/init_test
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/test/init_test"
-- Installing: /home/slb/anaconda2/envs/py27/test/transform_test
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/test/transform_test"
-- Installing: /home/slb/anaconda2/envs/py27/test/blob_test
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/test/blob_test"
-- Installing: /home/slb/anaconda2/envs/py27/test/timer_test
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/test/timer_test"
-- Installing: /home/slb/anaconda2/envs/py27/test/graph_test
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/test/graph_test"
-- Installing: /home/slb/anaconda2/envs/py27/test/registry_test
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/test/registry_test"
-- Installing: /home/slb/anaconda2/envs/py27/test/stats_test
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/test/stats_test"
-- Installing: /home/slb/anaconda2/envs/py27/test/net_test
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/test/net_test"
-- Installing: /home/slb/anaconda2/envs/py27/test/logging_test
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/test/logging_test"
-- Installing: /home/slb/anaconda2/envs/py27/test/operator_test
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/test/operator_test"
-- Installing: /home/slb/anaconda2/envs/py27/test/operator_schema_test
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/test/operator_schema_test"
-- Installing: /home/slb/anaconda2/envs/py27/test/workspace_test
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/test/workspace_test"
-- Installing: /home/slb/anaconda2/envs/py27/test/module_test
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/test/module_test"
-- Installing: /home/slb/anaconda2/envs/py27/test/context_test
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/test/context_test"
-- Installing: /home/slb/anaconda2/envs/py27/test/event_test
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/test/event_test"
-- Installing: /home/slb/anaconda2/envs/py27/test/common_test
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/test/common_test"
-- Installing: /home/slb/anaconda2/envs/py27/test/parallel_net_test
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/test/parallel_net_test"
-- Installing: /home/slb/anaconda2/envs/py27/test/predictor_test
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/test/predictor_test"
-- Installing: /home/slb/anaconda2/envs/py27/test/typeid_test
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/test/typeid_test"
-- Installing: /home/slb/anaconda2/envs/py27/test/observer_test
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/test/observer_test"
-- Installing: /home/slb/anaconda2/envs/py27/test/mpi_test
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/test/mpi_test"
-- Installing: /home/slb/anaconda2/envs/py27/test/time_observer_test
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/test/time_observer_test"
-- Installing: /home/slb/anaconda2/envs/py27/test/text_file_reader_utils_test
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/test/text_file_reader_utils_test"
-- Installing: /home/slb/anaconda2/envs/py27/test/generate_proposals_op_test
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/test/generate_proposals_op_test"
-- Installing: /home/slb/anaconda2/envs/py27/test/boolean_unmask_ops_test
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/test/boolean_unmask_ops_test"
-- Installing: /home/slb/anaconda2/envs/py27/test/batch_matmul_op_test
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/test/batch_matmul_op_test"
-- Installing: /home/slb/anaconda2/envs/py27/test/generate_proposals_op_util_boxes_test
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/test/generate_proposals_op_util_boxes_test"
-- Installing: /home/slb/anaconda2/envs/py27/test/utility_ops_test
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/test/utility_ops_test"
-- Installing: /home/slb/anaconda2/envs/py27/test/string_ops_test
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/test/string_ops_test"
-- Installing: /home/slb/anaconda2/envs/py27/test/elementwise_op_test
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/test/elementwise_op_test"
-- Installing: /home/slb/anaconda2/envs/py27/test/conv_transpose_op_mobile_test
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/test/conv_transpose_op_mobile_test"
-- Installing: /home/slb/anaconda2/envs/py27/test/generate_proposals_op_util_nms_test
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/test/generate_proposals_op_util_nms_test"
-- Installing: /home/slb/anaconda2/envs/py27/test/conv_op_test
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/test/conv_op_test"
-- Installing: /home/slb/anaconda2/envs/py27/test/pattern_net_transform_test
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/test/pattern_net_transform_test"
-- Installing: /home/slb/anaconda2/envs/py27/test/common_subexpression_elimination_test
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/test/common_subexpression_elimination_test"
-- Installing: /home/slb/anaconda2/envs/py27/test/conv_to_nnpack_transform_test
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/test/conv_to_nnpack_transform_test"
-- Installing: /home/slb/anaconda2/envs/py27/test/fixed_divisor_test
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/test/fixed_divisor_test"
-- Installing: /home/slb/anaconda2/envs/py27/test/smart_tensor_printer_test
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/test/smart_tensor_printer_test"
-- Installing: /home/slb/anaconda2/envs/py27/test/math_test
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/test/math_test"
-- Installing: /home/slb/anaconda2/envs/py27/test/cpuid_test
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/test/cpuid_test"
-- Installing: /home/slb/anaconda2/envs/py27/test/proto_utils_test
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/test/proto_utils_test"
-- Installing: /home/slb/anaconda2/envs/py27/test/fatal_signal_asan_no_sig_test
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/test/fatal_signal_asan_no_sig_test"
-- Installing: /home/slb/anaconda2/envs/py27/test/simple_queue_test
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/test/simple_queue_test"
-- Installing: /home/slb/anaconda2/envs/py27/test/context_gpu_test
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/test/context_gpu_test"
-- Installing: /home/slb/anaconda2/envs/py27/test/operator_gpu_test
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/test/operator_gpu_test"
-- Installing: /home/slb/anaconda2/envs/py27/test/net_gpu_test
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/test/net_gpu_test"
-- Installing: /home/slb/anaconda2/envs/py27/test/event_gpu_test
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/test/event_gpu_test"
-- Installing: /home/slb/anaconda2/envs/py27/test/blob_gpu_test
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/test/blob_gpu_test"
-- Installing: /home/slb/anaconda2/envs/py27/test/mpi_gpu_test
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/test/mpi_gpu_test"
-- Installing: /home/slb/anaconda2/envs/py27/test/conv_op_cache_cudnn_test
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/test/conv_op_cache_cudnn_test"
-- Installing: /home/slb/anaconda2/envs/py27/test/batch_matmul_op_gpu_test
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/test/batch_matmul_op_gpu_test"
-- Installing: /home/slb/anaconda2/envs/py27/test/reshape_op_gpu_test
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/test/reshape_op_gpu_test"
-- Installing: /home/slb/anaconda2/envs/py27/test/elementwise_op_gpu_test
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/test/elementwise_op_gpu_test"
-- Installing: /home/slb/anaconda2/envs/py27/test/operator_fallback_gpu_test
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/test/operator_fallback_gpu_test"
-- Installing: /home/slb/anaconda2/envs/py27/test/roi_align_op_gpu_test
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/test/roi_align_op_gpu_test"
-- Installing: /home/slb/anaconda2/envs/py27/test/utility_ops_gpu_test
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/test/utility_ops_gpu_test"
-- Installing: /home/slb/anaconda2/envs/py27/test/math_gpu_test
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/test/math_gpu_test"
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/proto/predictor_consts.pb.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/proto/caffe2.pb.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/proto/hsm.pb.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/proto/metanet.pb.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/proto/caffe2_legacy.pb.h
-- Installing: /home/slb/anaconda2/envs/py27/include/caffe2/proto/prof_dag.pb.h
-- Installing: /home/slb/anaconda2/envs/py27/bin/convert_caffe_image_db
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/bin/convert_caffe_image_db"
-- Installing: /home/slb/anaconda2/envs/py27/bin/convert_db
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/bin/convert_db"
-- Installing: /home/slb/anaconda2/envs/py27/bin/db_throughput
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/bin/db_throughput"
-- Installing: /home/slb/anaconda2/envs/py27/bin/make_cifar_db
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/bin/make_cifar_db"
-- Installing: /home/slb/anaconda2/envs/py27/bin/make_mnist_db
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/bin/make_mnist_db"
-- Installing: /home/slb/anaconda2/envs/py27/bin/predictor_verifier
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/bin/predictor_verifier"
-- Installing: /home/slb/anaconda2/envs/py27/bin/print_registered_core_operators
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/bin/print_registered_core_operators"
-- Installing: /home/slb/anaconda2/envs/py27/bin/run_plan
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/bin/run_plan"
-- Installing: /home/slb/anaconda2/envs/py27/bin/speed_benchmark
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/bin/speed_benchmark"
-- Installing: /home/slb/anaconda2/envs/py27/bin/split_db
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/bin/split_db"
-- Installing: /home/slb/anaconda2/envs/py27/bin/inspect_gpus
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/bin/inspect_gpus"
-- Installing: /home/slb/anaconda2/envs/py27/bin/print_core_object_sizes
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/bin/print_core_object_sizes"
-- Installing: /home/slb/anaconda2/envs/py27/bin/core_overhead_benchmark
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/bin/core_overhead_benchmark"
-- Installing: /home/slb/anaconda2/envs/py27/bin/run_plan_mpi
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/bin/run_plan_mpi"
-- Installing: /home/slb/anaconda2/envs/py27/bin/convert_encoded_to_raw_leveldb
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/bin/convert_encoded_to_raw_leveldb"
-- Installing: /home/slb/anaconda2/envs/py27/bin/make_image_db
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/bin/make_image_db"
-- Installing: /home/slb/anaconda2/envs/py27/bin/tutorial_blob
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/bin/tutorial_blob"
-- Installing: /home/slb/anaconda2/envs/py27/lib/libcaffe2_detectron_ops_gpu.so
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/lib/libcaffe2_detectron_ops_gpu.so"
-- Installing: /home/slb/anaconda2/envs/py27/lib/libcaffe2_module_test_dynamic.so
-- Removed runtime path from "/home/slb/anaconda2/envs/py27/lib/libcaffe2_module_test_dynamic.so"

以上caffe文件主要安装在虚拟环境py27目录下的bin,lib,include和test目录中!重点内容
注:若安装成功,caffe的build目录的bin目录下必须有东西!
以上如果安装成功,配置好.bashrc后,你就可以在虚拟环境py27下继续Detectron的安装了(安装指导

若以上无法顺利安装,可参考如下链接的Troubleshooting部分说明,尤其是针对Protobuf Errors的说明及解决方法:

https://caffe2.ai/docs/getting-started.html?platform=ubuntu&configuration=compile#custom-anaconda-install
https://caffe2.ai/docs/getting-started.html?platform=mac&configuration=compile#custom-anaconda-install
https://github.com/facebookresearch/Detectron/blob/master/INSTALL.md

其他可参考的解决方法:
1.conda uninstall libtiff worked for me或者sudo apt-get install libtiff4-dev

当出现opencv。。。。TIFF@错误时,可能系统中既有ananconda的opencv又有系统usr/local中的opencv或者是protobuff系统版本和conda环境中的混淆引起的!

2.Caffe2 uses protobuf as its serialization format and requires version 3.2.0 or newer. If your protobuf version is older, you can build protobuf from Caffe2 protobuf submodule and use that version instead.

To build Caffe2 protobuf submodule:

手动编译支持caffe2的Protobuf:
# CAFFE2=/path/to/caffe2
cd $CAFFE2/third_party/protobuf/cmake
mkdir -p build && cd build
#编译并安装在自己的home路径下,用于caffe2编译,如下:
cmake .. \
  -DCMAKE_INSTALL_PREFIX=$HOME/c2_tp_protobuf \
  -Dprotobuf_BUILD_TESTS=OFF \
  -DCMAKE_CXX_FLAGS="-fPIC"
make install

3.其他错误,如果大家google解决不了,可以提出来,我有时间会跟大家一起交流,共同学习!谢谢