caffe2 ubuntu16.04 安裝方法
Caffe2的安裝相比于caffe在安裝的時候更加簡便,略去了Makefile.config的各種配置,對于有無GPU以及各種可選庫例如opencv,anaconda的支持也更簡單。(其實你直接裝好庫以后make就好,以GPU為例,在make的時候,自動檢測你是否安裝了CUDA,若沒有,就自動CPU only)
在開始安裝之前,附上caffe2的官方鏈接,官網對于安裝還是講的非常詳細易懂:https://caffe2.ai/docs/getting-started.html?platform=ubuntu&configuration=compile
依賴庫的安裝&&驅動
sudo apt-get remove - -purge nvidia-*
sudo apt-get remove - -purge cuda-*
sudo apt-get install -y nvidia-390
sudo apt-get install -y --no-install-recommends \build-essential \cmake \git \libgo