title: Error "ImportError: DLL load failed: %1 is not a valid Win32 application"
body: <p>I have this issue where I try to import <code>cv2</code> on Python and get the following error message.</p>
  <pre class="lang-none prettyprint-override"><code>&gt;&gt;&gt; import cv2
  Traceback (most recent call last):
  File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;
  ImportError: DLL load failed: %1 is not a valid Win32 application.
  </code></pre>
  <p>I do understand there are many posts about this where it is suggested that the bitness of the package is different from the Python package.</p>
  <p>However, everything I am running is 64 bits.  I am on Windows 7 64 bits, I have the <a href="http://code.google.com/p/winpython/downloads/detail?name=WinPython-64bit-2.7.3.3.exe" rel="nofollow noreferrer">winpython</a> 2.7.3.3, 64 bits distribution, and I compiled OpenCV in 64 bits with the instruction provided <a href="http://docs.opencv.org/doc/tutorials/introduction/windows_install/windows_install.html" rel="nofollow noreferrer">here</a> and placed the cv2.pyd DLL file in the Lib/site-packages folder of the Python interpreter.</p>
  <p>Unfortunately, the suggestion of using the 32 bits version of Python isn't working for me any more as I have to handle NumPy arrays too large for 32 bits.</p>
  <hr/>
  <p>The only thing missing was to add the new NumPy binaries path (C:\opencv\build\bin\Release) to the Windows PATH environment variable, restart the Python interpreter.</p>
  <p>Everything seems to be working fine now!</p>