[PYTHON] Install Caffe running 3D-CNN on clean Ubuntu 14.04

I would like to write a story about building an environment from a clean Ubuntu 14.04 environment until 3D-CNN using caffe can be used with python.

It is assumed that you have root privileges. "I think this is the fastest"

Install pyenv

Download pyenv = install. Just don't forget to install it as it uses git.

sudo apt-get install git
git clone git://github.com/yyuu/pyenv.git ~/.local/pyenv

Add the following to .bashrc to pass the path to the save location

export PYENV_ROOT=~/.local/pyenv  #Required for pyenv install after this
export PATH=$PYENV_ROOT/bin:$PATH
eval "$(pyenv init -)"

Don't forget to source.

source ~/.bashrc

(Reference: [I built a python environment on Ubuntu using pyenv.](Http://www.takunoko.com/blog/ubuntu%E3%81%ABpython%E3%82%92%E3%82% A4% E3% 83% B3% E3% 82% B9% E3% 83% 88% E3% 83% BC% E3% 83% AB% E3% 81% 97% E3% 81% BE% E3% 81% 97% E3% 81% 9F% E3% 80% 82 /))

Installation of anaconda

Insert anaconda into pyenv and make it the default python environment.

pyenv install anaconda-2.3.0 #It takes about 10 minutes
pyenv global anaconda-2.3.0

Environmental improvement of anaconda

conda install protobuf

(Reference: How to use 3D-CNN with Caffe in TSUBAME 2.5)

Installation of many necessary things

sudo apt-get install libatlas-base-dev libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libhdf5-serial-dev protobuf-compiler libgflags-dev libgoogle-glog-dev liblmdb-dev python-numpy
sudo apt-get install --no-install-recommends libboost-all-dev

(Reference: Caffe --Ubuntu Installation)

caffe installation

git clone https://github.com/jmerkow/caffe.git ~/.local/caffe
cd ~/.local/caffe
cp Makefile.config.example Makefile.config

Modify Makefile.config. The environment at hand doesn't have a GPU.

-# CPU_ONLY := 1
+CPU_ONLY := 1  

Run make

make all
make test 
make runtest

make pycaffe

Modify .bashrc again. Please source after this.

export PYTHONPATH=~/.local/caffe/python:$PYTHONPATH

So far, on the python interpreter

import caffe

If it goes well, it's OK. accomplished.

Try running caffe

Under construction. I would like to show an example of running 3D-CNN.


What you want to add to the article

--Creating a version of the procedure that uses OpenBLAS instead of atlas --Execution of learning using caffe

Recommended Posts

Install Caffe running 3D-CNN on clean Ubuntu 14.04
Install Caffe on Ubuntu 14.04 (GPU)
Install TensorFlow on Ubuntu
Install PySide2 on Ubuntu
Install JModelica on Ubuntu
Install Python 3.3 on Ubuntu 12.04
Install Caffe on Mac
Install Theano on Ubuntu 12.04
Install angr on Ubuntu 18.04
Install pip / pip3 on Ubuntu
Install GoLand IDE on Ubuntu
Install OpenCV on Ubuntu + python
wsl Install PostgreSQL on Ubuntu 18.04
[ROS] Install ROS (melodic) on Ubuntu (18.04)
Install Docker on WSL Ubuntu 18.04
Install CUDA10.1 + cuDNN7.6.5 + tensorflow-2.3.0 on Ubuntu 18.04
Install Python 3.8 on Ubuntu 18.04 (OS standard)
Install Mecab and mecab-python3 on Ubuntu 14.04
Install and run dropbox on Ubuntu 20.04
Install OpenCV and Chainer on Ubuntu
Install CUDA 8.0 and Chainer on Ubuntu 16.04
Install Python 3.8 on Ubuntu 20.04 (OS standard)
Install fabric on Ubuntu and try
Install Python 3.9 on Ubuntu 20.04 (OS standard?)
Install confluent-kafka for Python on Ubuntu
Install Python 2.7 on Ubuntu 20.04 (OS standard?)
How to install Go on Ubuntu
ROS study # 1 Install ros-noetic on ubuntu 20.04
Steps to install Python environment on Ubuntu
Install Pleasant on Ubuntu 20.04 (.NetCore3.1 / PostgreSQL version)
Install Puppet Master and Client on Ubuntu 16.04
How to install php7.4 on Linux (Ubuntu)
Install pyenv and Python 3.6.8 on Ubuntu 18.04 LTS
I can't install Dask with pip on Ubuntu
Install python package in personal environment on Ubuntu
[Procedure memo] Install Python3 + OpenSSL locally on Ubuntu
[Note] Install wxPython 3.x on Linux Mint (Ubuntu)
Install the latest Cuda + CuDNN on Ubuntu 18.04 @ Spring 2020
Change the resolution of Ubuntu running on VirtualBox
Install MongoDB on Ubuntu 16.04 and operate via python
Install Ubuntu 20.04 LTS (Server) 64bit version on RaspberryPi3B +
Install the latest version of CMake on Ubuntu 18.04.4 LTS
Install Apache Tomcat 9 on Ubuntu 19.10 Eoan Ermine Hello World
Install Apache 2.4 on Ubuntu 19.10 Eoan Ermine and run CGI
I got a UnicodeDecodeError when pip install on ubuntu
Install Bash on Ubuntu on Windows, Ruby, Python, Jupyter, etc.
Install mecab on Marvericks
Install python on WSL
Install pyenv on mac
Install pip on Mavericks
Install mongodb on termux
Install Scrapy on python3
Install docker on Fedora31
Install numba on CentOS 7.2
Install Ansible on Mac
Install Python on Mac
Install Python 3 on Mac
Install Plone (4.3.6) on MacOSX (10.10.3)
Install Python3.4 on CentOS 6.6
Install Docker (Ubuntu 18.04 LTS)
Install gensim on Marvericks