|
本帖最后由 meatball1982 于 2017-3-29 13:47 编辑
这是一个完全新安装的ubuntu14.04,如果在之前已经有的14.04上安装,会出现各种问题。主要是库的问题。
建议新手,菜niao还是用一个全新安装的ubuntu来尝试安装。大体搞明白各个库之间的关系,再自己编译库,安装。
虽然,我还没能成功。
GPU的基本一致,只是要安装
cuda,
cudnn
注释掉
CPU_ONLY := 1
这一行。
cudnn那一行去掉注释。
有空再写个记录。
- sudo apt-get install nautilus-open-terminal
- sudo apt-get install vim
- sudo apt-get install git
- 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 libatlas-base-dev
- sudo apt-get install python-dev
- sudo apt-get install libgflags-dev libgoogle-glog-dev liblmdb-dev
- sudo apt-get install python-pip python-dev python-numpy
- sudo apt-get install gfortran
- sudo apt-get install pydot
- sudo pip install Cython
- sudo pip install numpy
- sudo pip install scipy
- sudo pip install scikit-image
- sudo pip install matplotlib
- sudo pip install ipython
- sudo pip install h5py
- sudo pip install leveldb
- sudo pip install networkx
- sudo pip install nose
- sudo pip install pandas
- sudo pip install python-dateutil
- sudo pip install protobuf
- sudo pip install python-gflags
- sudo pip install pyyaml
- sudo pip install Pillow
- sudo pip install graphviz
- mkdir /home/mm/softs
- cd softs
- git clone https://github.com/bvlc/caffe.git
- cd caffe
- cp Makefile.config.example Makefile.config
- vi Makefile.config
- CPU_ONLY := 1
- MATLAB_DIR := /home/mm/softs/MATLAB/R2014b
- make
- make test
- make runtest
- make pycaffe
- make matcaffe
- vi tm.py
- import sys
- sys.path.append("/home/mm/softs/caffe/python")
- import caffe
- python tm.py
复制代码
|
|