I am trying to install xbob.flandmarks using "pip install xbob.flandmark". When I do so I get the following error:
RuntimeError: PkgConfig did not find package opencv. Output:
Package opencv was not found in the pkg-config search path.
Perhaps you should add the directory containing `opencv.pc'
to the PKG_CONFIG_PATH environment variable
No package 'opencv' found
This is a somewhat common error (see here and here). I have tried the solution these links propose (adding the opencv.pc file to my PKG_CONFIG_PATH
both by exporting it in the shell (export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/Cellar/opencv/2.4.8.2/lib/pkgconfig/
) and by adding the line to my ~/.bashr
c file. I have also tried using the opencv.pc file stored in the homebrew Cellar as well as in /usr/local/lib/pkgconfig
.)
Any suggestions would be greatly appreciated.