ubuntu 14.04 Bob 安装

1. 附件依赖项安装
$ sudo add-apt-repository ppa:biometrics/bob $ sudo apt-get update $ sudo apt-get install wget git-core pkg-config cmake python-dev python-support liblapack-dev libatlas-base-dev libblitz1-dev libavformat-dev libavcodec-dev libswscale-dev libboost-all-dev libmatio-dev libjpeg8-dev libnetpbm10-dev libpng12-dev libtiff4-dev libgif-dev libhdf5-serial-dev libfftw3-dev texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended libsvm-dev libvl-dev dvipng python-numpy python-scipy dvipng libopencv-dev gcc g++ make

2.安装python依赖项
$ sudo apt-get install python-argparse python-matplotlib python-tornado python-sqlalchemy python-sphinx python-nose python-setuptools python-imaging ipython python-ipdb
3..使用buildout安装
$ mkdir exp01
$ cd exp01
$
wget https://bootstrap.pypa.io/bootstrap-buildout.py
Create buildout.cfg file, in the same folder as bootstrap-buildout.py. The contents will depend on which Bob packages you would like to work with, but it generally looks like this:
[buildout]
parts = scripts
extensions = bob.buildout
prefer-final = false
; use prefer-final = false **only** to get betas and pre-releases
eggs = bob.io.image
       bob.learn.linear

; options for bob.buildout
debug = false
; debug = false will compile bob packages in release mode
verbose = true
newest = false
; newest = false to avoid re-installing new versions of packages

[scripts]
recipe = bob.buildout:scripts
dependent-scripts = true


4. 安装
$ python bootstrap-buildout.py $ ./bin/buildout

5. 测试
$ ./bin/python
...
>>> import bob.io.image
>>> print(bob.io.image.get_config())
...
>>> import bob.learn.linear
>>> print(bob.learn.linear.get_config())
...
 



 

posted on 2016-10-24 12:30  Kevin.Tu  阅读(1033)  评论(0编辑  收藏  举报