title: installing opencv for python on mavericks
body: <p>I am trying to install opencv on a Macbook Pro late 2013 with mavericks. I didn't find any binaries so I am trying to build it.<br>
  I tried <a href="http://www.guidefreitas.com/installing-opencv-2-4-2-on-mac-osx-mountain-lion-with-python-support" rel="nofollow noreferrer">http://www.guidefreitas.com/installing-opencv-2-4-2-on-mac-osx-mountain-lion-with-python-support</a><br>
  and <a href="http://forums.udacity.com/questions/100021223/installing-opencv-on-os-x-mountain-lion" rel="nofollow noreferrer">http://forums.udacity.com/questions/100021223/installing-opencv-on-os-x-mountain-lion</a><br>
  when calling make the error 2 is produced<br>
  (CMake Error at cuda_compile_generated_matrix_operations.cu.o.cmake:208)</p>
  
  <p>When searching on this website I found <a href="https://stackoverflow.com/questions/19537206/opencv-for-python-on-mavericks/19547568#19547568">opencv for python on mavericks</a> (I also tried homebrew which also produced error 2, but without any further information)</p>
  
  <p>I googled a lot, but none of the found solutions worked for me. Does anyone have a tut for installing opencv on Mavericks?</p>
  
  <p>Thank you</p>
  
  <p>using brew gives the following output:  </p>
  
  <pre><code>    brew install homebrew/science/opencv
      Warning: It appears you have MacPorts or Fink installed.
      Software installed with other package managers causes known problems for
      Homebrew. If a formula fails to build, uninstall MacPorts/Fink and try again.
      ==&gt; Downloading http://downloads.sourceforge.net/project/opencvlibrary/opencv-un
      Already downloaded: /Library/Caches/Homebrew/opencv-2.4.6.1.tar.gz
      ==&gt; cmake -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/opencv/2.4.6.1 -DCMAKE_BUILD_
      ==&gt; make
      cd /tmp/opencv-QBoi/opencv-2.4.6.1/macbuild/modules/stitching &amp;&amp; /usr/local/Cellar/cmake/2.8.12/bin/cmake -E cmake_symlink_library ../../lib/libopencv_stitching.2.4.6.dylib ../../lib/libopencv_stitching.2.4.dylib ../../lib/libopencv_stitching.dylib
      /usr/local/Cellar/cmake/2.8.12/bin/cmake -E cmake_progress_report /tmp/opencv-QBoi/opencv-2.4.6.1/macbuild/CMakeFiles  90 91
      [100%] Built target opencv_stitching
      make[1]: *** [modules/python/CMakeFiles/opencv_python.dir/all] Error 2
      make: *** [all] Error 2
  
      READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting
      If reporting this please do so at the homebrew/science tap (not mxcl/homebrew).
  </code></pre>
  
  <p>I solved the problem for me by using canopy (<a href="https://www.enthought.com/products/canopy/" rel="nofollow noreferrer">https://www.enthought.com/products/canopy/</a>) which is free for students</p>