无法安装bob.measure python包

时间:2016-06-01 21:41:50

标签: python pip python-bob

我已根据getFile API methodhttps://github.com/idiap/bob/wiki/Dependencies中显示的图表安装了bob.measure的所有依赖项:

但是,我无法安装包这是追溯:

C:\Anaconda3\python.exe "C:\Program Files (x86)\JetBrains\PyCharm Community Edition 2016.1\helpers\pydev\pydevconsole.py" 49754 49755
Python 3.5.1 |Anaconda 4.0.0 (64-bit)| (default, Feb 16 2016, 09:49:46) [MSC v.1900 64 bit (AMD64)]
Type "copyright", "credits" or "license" for more information.

IPython 4.1.2 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.
PyDev console: using IPython 4.1.2

import sys; print('Python %s on %s' % (sys.version, sys.platform))
sys.path.extend(['C:\\Users\\Myself\\Documents\\PYTHON'])

所有bob.measure依赖项都是最新的。 我有一个Ubuntu 14.04系统。

2 个答案:

答案 0 :(得分:0)

在Ubuntu上安装依赖项:

sudo apt-get install libboost-all-dev
sudo apt-get install libblitz0-dev
sudo apt-get install cmake
sudo apt-get install libhdf5-serial-dev
sudo apt-get install libtiff5
sudo apt-get install libtiff5-dev
sudo apt-get install libtiff-tools
sudo apt-get install giflib-dbg

尝试使用pip安装

$ pip install numpy
$ pip install bob.extension
$ pip install bob.blitz
$ pip install bob.core
$ pip install bob.io.base
$ pip install bob.io.image

安装bob.measure

如果不存在,请安装以下依赖项

sudo apt-get install libopenblas-dev
sudo apt-get  install libcppnetlib-dev
sudo apt-get  install python-netlib
apt-get install libfreetype6-dev

使用pip3

sudo pip3 install bob.measure

答案 1 :(得分:0)

解决方案:

删除所有bob包,例如:

$ pip install numpy
$ pip install bob.extension
$ pip install bob.blitz
$ pip install bob.core
$ pip install bob.io.base
$ pip install bob.io.image

不要删除已安装的依赖项。

然后重新安装bob:

$ sudo apt-get install python-software-properties #to install "add-apt-repository"
$ sudo add-apt-repository ppa:biometrics/bob #only the first time
$ sudo apt-get update #repeat this every time you need to update
$ sudo apt-get install bob

来自:https://github.com/idiap/bob/wiki/Binary-Installation