Невозможно установить пакет python bob.measure
Я установил все зависимости bob.measure в соответствии с графиком, представленным в https://github.com/idiap/bob/wiki/Dependencies и https://github.com/idiap/bob/wiki/Installation:
Тем не менее, я не могу установить пакет, это трассировка:
omar@ubuntuv2:~/bob.measure$ sudo python setup.py
Traceback (most recent call last):
File "setup.py", line 50, in <module>
boost_modules = boost_modules,
File "/usr/local/lib/python2.7/dist-packages/bob/blitz/extension.py", line 52, in __init__
BobExtension.__init__(self, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/bob/extension/__init__.py", line 294, in __init__
bob_includes, bob_libraries, bob_library_dirs, bob_macros = get_bob_libraries(self.bob_packages)
File "/usr/local/lib/python2.7/dist-packages/bob/extension/__init__.py", line 186, in get_bob_libraries
pkg = importlib.import_module(package)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/usr/local/lib/python2.7/dist-packages/bob/math/__init__.py", line 6, in <module>
bob.extension.load_bob_library('bob.math', __file__)
File "/usr/local/lib/python2.7/dist-packages/bob/extension/__init__.py", line 237, in load_bob_library
ctypes.cdll.LoadLibrary(full_libname)
File "/usr/lib/python2.7/ctypes/__init__.py", line 443, in LoadLibrary
return self._dlltype(name)
File "/usr/lib/python2.7/ctypes/__init__.py", line 365, in __init__
self._handle = _dlopen(self._name, mode)
OSError: /usr/local/lib/python2.7/dist-packages/bob/math/libbob_math.so: undefined symbol: dsyevd_
Все зависимости bob.measure обновлены. У меня есть система Ubuntu 14.04.
2 ответа
Установите зависимости на 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
Решение:
Удалите все пакеты 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