1
我正在嘗試使用「pip install xbob.flandmark」來安裝xbob.flandmarks。當我這樣做,我得到以下錯誤:PIP找不到opencv
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
這是一個很常見的錯誤(見here和here)。我已經嘗試了這些鏈接建議的解決方案(通過在shell中導出它(export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/Cellar/opencv/2.4.8.2/lib/pkgconfig/
)並將該行添加到我的~/.bashr
c文件中,將opencv.pc文件添加到我的PKG_CONFIG_PATH
。我也嘗試使用存儲的opencv.pc文件在自制酒窖以及/usr/local/lib/pkgconfig
。)
任何建議將不勝感激。
是'pkg-config --libs --cflags opencv'的輸出是否爲空? –
忘了提及我在mac上運行(我認爲這是原因--libs返回命令未找到) – randomcastle