Anaconda 1.7上的OpenCV 2.4.6:DLL加载失败

时间:2013-10-02 05:54:26

标签: opencv ipython-notebook anaconda

当我尝试在Windows 7SP1 x64上将OpenCV模块加载到Anaconda 1.7中时,我得到:

In [1]: import cv2
ImportError: DLL load failed: %1 is not a valid Win32 application.

以下是一些诊断信息:

In [2]: import platform
In [3]: platform.platform()
Out [3]: 'Windows-7-6.1.7601-SP1'
In [4]: platform.architecture()
Out [4]: ('64bit', 'WindowsPE')
In [5]: !ls C:\Anaconda\Lib\site-packages\cv2.pyd
C:\Anaconda\Lib\site-packages\cv2.pyd
In [6]: !path
PATH=C:\Anaconda\lib\site-packages\numpy\core;C:\bin;C:\Program Files (x86)\TextPad 5;
C:\Program Files (x86)\ImageMagick-6.7.8-Q16;
C:\Program Files\Common Files\Microsoft Shared\Windows Live;
C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;
C:\Windows\System32\WindowsPowerShell\v1.0\;
C:\Program Files (x86)\Common Files\Lenovo;
C:\Program Files (x86)\Common Files\Ulead Systems\MPEG;
C:\Program Files (x86)\Windows Live\Shared;C:\SWTOOLS\ReadyApps;
C:\Program Files (x86)\Intel\Services\IPT\;
C:\Program Files (x86)\Symantec\VIP Access Client\;
C:\Program Files (x86)\GnuWin32\bin;C:\Program Files (x86)\IVI Foundation\IVI\bin;
C:\Program Files\IVI Foundation\IVI\bin;
C:\Program Files\IVI Foundation\VISA\Win64\Bin\;
C:\Program Files (x86)\IVI Foundation\VISA\WinNT\Bin\;
C:\Program Files (x86)\IVI Foundation\VISA\WinNT\Bin;
C:\Program Files (x86)\Smart Projects\IsoBuster;
C:\Program Files (x86)\QuickTime\QTSystem\;C:\Anaconda;C:\Anaconda\Scripts;
C:\opencv\build\x64\vc11\bin;C:\Program Files (x86)\Nmap

我之前已经看过类似的问题,我尝试过这些解决方案,并且想知道新的Anaconda 1.7(iPython Notebook 1.0)版本是否有所不同。

0 个答案:

没有答案