(步骤1)
我正在尝试使用MacPorts安装http://opencv.willowgarage.com/wiki/Mac_OS_X_OpenCV_Port从我的mac上的python运行openCV ,并尝试遵循The Petite Geek的指南:
sudo port -v install opencv +python26
Run Code Online (Sandbox Code Playgroud)
它运行大约10分钟没有错误.
(第2步)
我下载了ctypes-opencv源代码和演示文件.我导航到src目录并运行:
sudo python setup.py install
Run Code Online (Sandbox Code Playgroud)
我看到几乎所有形式的50行:copying ... -> ...,这对我来说很好看.这里没有错误.
(第3步)
我加上我export DYLD_FALLBACK_LIBRARY_PATH=/opt/local/lib的结尾~/.profile.
(第4步)
我打开一个新的终端来测试我的安装.从我的主文件夹:
$ python
Python 2.6.2 (r262:71600, Apr 16 2009, 09:17:39)
[GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv
Traceback (most recent call last):
File "<stdin>", line 1, …Run Code Online (Sandbox Code Playgroud)