title: OpenCV 2.0 and Python
body: <p>I cannot get the example Python programs to run. When executing the Python command "from opencv import cv" I get the message "ImportError: No module named _cv".  There is a stale _cv.pyd in the site-packages directory, but no _cv.py anywhere.  See step 5 below.</p>
  
  <p>MS Windows XP, VC++ 2008, Python 2.6, OpenCV 2.0</p>
  
  <p>Here's what I have done.</p>
  
  <ol>
  <li>Downloaded and ran the MS Windows installer for OpenCV2.0.</li>
  <li>Downloaded and installed CMake</li>
  <li>Downloaded and installed SWIG</li>
  <li>Ran CMake. After unchecking "ENABLE_OPENMP" in the CMake GUI, I was able to build OpenCV using INSTALL.vcproj and BUILD_ALL.vcproj.  I do not know what the difference is, so I built everything under both of those project files.  The C example programs run fine.</li>
  <li>Copied contents of OpenCV2.0/Python2.6/lib/site-packages to my installed Python2.6/lib/site-packages directory.  I notice that it contains an old _cv.pyd and an old libcv.dll.a.</li>
  </ol>