我正在尝试在带有 Mountain Lion 的 Mac 上使用 OpenCV 和 PySide。Homebrew 公式工作正常,但没有显示 python 绑定文件。
romaindeterre$ brew install opencv
==> Downloading http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/2.4.3/Op
Already downloaded: /Library/Caches/Homebrew/opencv-2.4.3.tar.bz2
==> cmake -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/opencv/2.4.3 -DCMAKE_BUILD_TYPE=None
==> make
==> make install
==> Caveats
The OpenCV Python module will not work until you edit your PYTHONPATH like so:
export PYTHONPATH="/usr/local/lib/python2.7/site-packages:$PYTHONPATH"
To make this permanent, put it in your shell's profile (e.g. ~/.profile).
==> Summary
/usr/local/Cellar/opencv/2.4.3: 214 files, 51M, built in 108 seconds
不包含/usr/local/lib/python2.7/site-packages
任何名为.cv.*
我做到brew update
了,输出brew doctor
如下:
警告:“config”脚本存在于您的系统或 Homebrew 目录之外。
./configure
脚本经常查找 *-config 脚本以确定是否安装了软件包,以及在编译和链接时要使用哪些附加标志。如果配置脚本覆盖系统或 Homebrew 提供的同名脚本,则在路径中包含其他脚本可能会混淆通过 Homebrew 安装的软件。我们发现了以下“配置”脚本:
/Library/Frameworks/Python.framework/Versions/2.7/bin/python-config /Library/Frameworks/Python.framework/Versions/2.7/bin/python2-config /Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7-config
正确安装 OpenCV 有什么遗漏吗?
谢谢