terminal
sudo apt-get update
sudo apt-get install libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libhdf5-serial-dev libgflags-dev libgoogle-glog-dev liblmdb-dev protobuf-compiler libatlas-base-dev
sudo apt-get install python-dev python-pip gfortran
sudo apt-get install cython python-numpy python-scipy python-skimage python-matplotlib python-h5py python-leveldb python-networkx python-pandas python-dateutil python-protobuf python-gflags python-yaml python-pil
sudo apt-get install graphviz python-six python-requests python-Flask python-gevent
sudo apt-get install libboost-all-dev
write a .sh document
#!/bin/bash
set -e
APT_FLAGS="-y"
echo
echo Installing apt-get packages ...
echo
sudo apt-get update
# Caffe base
sudo apt-get install $APT_FLAGS libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libhdf5-serial-dev libgflags-dev libgoogle-glog-dev liblmdb-dev protobuf-compiler libatlas-base-dev
# Caffe python
sudo apt-get install $APT_FLAGS python-dev python-pip gfortran
# Caffe pip
sudo apt-get install $APT_FLAGS cython python-numpy python-scipy python-skimage python-matplotlib python-h5py python-leveldb python-networkx python-pandas python-dateutil python-protobuf python-gflags python-yaml python-pil
# DIGITS base
sudo apt-get install $APT_FLAGS graphviz
sudo apt-get install $APT_FLAGS libboost-all-dev
# DIGITS pip
sudo apt-get install $APT_FLAGS python-six python-requests python-Flask python-gevent
echo
echo Extracting MNIST images ...
echo
venv/bin/python mnist/main.py
echo Done.