Environment
- Ubuntu 17.10
- vmware 14.1.1
Python3
- python3.6.3 by default in Ubuntu 17.10
PIP3
- sudo apt install python3-pip3
Paramiko
http://www.paramiko.org/installing.html
- sudo apt install paramiko
xlrd,xlwt,xlutils
- sudo pip3 install xlrd
- sudo pip3 install xlwt
- sudo pip3 install xlutils
Django 2.0
- sudo pip3 install Django
Ruby
- sudo apt install ruby-full
- sudo apt install gnuplot
Caffe
- caffe依赖库安装
sudo apt-get install libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libhdf5-serial-dev protobuf-compiler
sudo apt-get install --no-install-recommends libboost-all-dev
sudo apt-get install libopenblas-dev liblapack-dev libatlas-base-dev
sudo apt-get install libgflags-dev libgoogle-glog-dev liblmdb-dev
Caffe环境安装
sudo apt install caffe-cpu
- Caffe编译
git clone https://github.com/Hans2009/caffe.git
cd caffe
vi Makefile
在Makefile.config文件的第95行,添加/usr/include/hdf5/serial/ 到 INCLUDE_DIRS,也就是把下面第一行代码改为第二行代码。
INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include
INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include /usr/include/hdf5/serial/
Makefile.config文件的第8行,第21行
CPU_ONLY = 1
OPENCV_VERSION = 3
在Makefile文件的第181行,把 hdf5_hl 和hdf5修改为hdf5_serial_hl 和 hdf5_serial,也就是把下面第一行代码改为第二行代码。
LIBRARIES += glog gflags protobuf boost_system boost_filesystem m hdf5_hl hdf5
LIBRARIES += glog gflags protobuf boost_system boost_filesystem m hdf5_serial_hl hdf5_serial
-开始编译
make clean
make all
make test
make runtest
#make pycaffe
Tensorflow
bash Anaconda3-5.1.0-Linux-x86_64.sh
(yes/yes/yes...)
sudo reboot
conda create -n tensorflow python=3.6
source activate tensorflow
pip3 install tensorflow
Atom
minimap
minimap-highlight-selected
atom-bracket-highlight
Highlight Line
Sync Settings
Atom Beautify