Compiling OpenCV 2.0 with Python 2.6 (installed via MacPorts) bindings is not straight forward. The main problem, as Gregory Dudek noted, is that using a version of Python installed via MacPorts isn't automatically linked to by the OS X (Darwin) C complier. The matter becomes more complicated if you have 3 different version of Python on the same system. Assumptions I'm assuming you have MacPorts i