OpenCV installation does not work on Mac OSX 10.6.8

I installed OpenCV on my Mac OSX 10.6.8 twice. First use:

sudo port -v install opencv +python27 

It seemed like it was installed perfectly (without errors), so I activated Python and tried to import it. Unfortunately this does not work:

 >>> import cv Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named cv >>> import cv2 Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named cv2 

Then, I tried to install it using https://stackoverflow.com/a/3125959/ ... (which everyone in the comments calls "the final good answer!"). This also indicates the addition of the following line to the ~ / .bash_profile file:

 export PYTHONPATH=/opt/local/var/macports/software/opencv/2.2.0_0+python27/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages:$PYTHONPATH 

So, I just looked into this folder: /opt/local/var/macports/software/opencv/ However, I see only two files (and there is no folder named 2.2.0_0+python27 ):

 opencv-2.4.4_3+python27.darwin_10.x86_64.tbz2 opencv-2.4.4_3.darwin_10.x86_64.tbz2 

And from there I got stuck.

Does anyone know why there is no such folder or, more importantly, does anyone know how I can install OpenCV on Mac OSX 10.6.8? All tips are welcome!

+4
source share

All Articles