title: opencv python osx
body: <p><strong>(Step 1)</strong></p>
  
  <p>I'm trying to get openCV to run from python on my mac using the MacPorts install <a href="http://opencv.willowgarage.com/wiki/Mac_OS_X_OpenCV_Port">http://opencv.willowgarage.com/wiki/Mac_OS_X_OpenCV_Port</a>, and also trying to follow <a href="http://thepetitegeek.blogspot.com/2009/09/installing-opencv-on-mac-os-x-with.html">The Petite Geek's guide</a>:</p>
  
  <pre><code>sudo port -v install opencv +python26
  </code></pre>
  
  <p>It runs for about 10 minutes without errors.</p>
  
  <p><strong>(Step 2)</strong></p>
  
  <p>I download <a href="http://code.google.com/p/ctypes-opencv/downloads/list">ctypes-opencv source and demo files</a>. I navigate to the <code>src</code> directory and run:</p>
  
  <pre><code>sudo python setup.py install
  </code></pre>
  
  <p>I see like 50 lines almost all of the form: <code>copying ... -&gt; ...</code>, which looks good to me. No errors here.</p>
  
  <p><strong>(Step 3)</strong></p>
  
  <p>I add <code>export DYLD_FALLBACK_LIBRARY_PATH=/opt/local/lib</code> to the end of my <code>~/.profile</code>.</p>
  
  <p><strong>(Step 4)</strong></p>
  
  <p>I open a new terminal to test my install. From my home folder:</p>
  
  <pre><code>$ 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.
  &gt;&gt;&gt; import cv
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  ImportError: No module named cv
  &gt;&gt;&gt; 
  </code></pre>
  
  <p>Does not work.</p>
  
  <hr>
  
  <p>I read <a href="http://www.dudek.org/blog/150">somewhere</a> that opencv installs python bindings with the default version of python for OSX, and I am probably running a non-default version, but this is not actionable information to me.</p>