title: How to make Opencv 2.4.8 with Python 2.7.5 to work on Windows7 Cygwin64?
body: <p>I spent some 15 hours by now trying to get Opencv 2.4.8 to work with Python 2.7.5 on my Windows7 Cygwin-64 environment. </p>
  
  <p>After some <a href="http://goo.gl/cUauJd" rel="nofollow">struggle</a>, I've finally managed to get Opencv work with C++, but I'm still not able to call Opencv from Python. </p>
  
  <p>This is what I get when trying to import the cv2 module:</p>
  
  <pre><code>$ python
  Python 2.7.5 (default, Oct  2 2013, 22:34:09)
  [GCC 4.8.1] on cygwin
  Type "help", "copyright", "credits" or "license" for more information.
  &gt;&gt;&gt; import cv2
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  ImportError: No module named cv2
  &gt;&gt;&gt;
  </code></pre>
  
  <p>During the installation (with cmake-gui) of Opencv, all the configuration entries regarding Python were correctly defined. </p>
  
  <p>I've added the path to opencv/bin to my PATH. </p>
  
  <p>I've copied the file cv2.pyd from the opencv distribution to my Python installation's site-packages folder, to no avail. </p>
  
  <p>I've tried to set PYTHONPATH to point to the site-packages directory, but it doesn't help.</p>
  
  <p>To me, it seems like Python is unaware of the cv2 module. </p>
  
  <p>Any pointers on what to try next would be very much appreciated. Also, if someone could provide some insights on how Python in general locates external non-Python modules, over and above placing the corresponding .pyd-file in the site-packages library, would be helpful for further trouble shooting. </p>
  
  <p>TIA. </p>