ImportError: DLL load failed: %1 is not a valid Win32 application. But the DLL's are there

前端 未结 21 1233
礼貌的吻别
礼貌的吻别 2020-11-22 14:12

I have a situation very much like the one at ImportError: DLL load failed: %1 is not a valid Win32 application, but the answer there isn\'t working for me.

My Python

21条回答
  •  死守一世寂寞
    2020-11-22 14:47

    First I copied cv2.pyd from /opencv/build/python/2.7/x86 to C:/Python27/Lib/site-packeges. The error was

    "RuntimeError: module compiled against API version 9 but this version of numpy is 7"

    Then I installed numpy-1.8.0-win32-superpack-python2.7.exe and opencv works fine.

    >>> import cv2
    >>> print cv2.__version__
    2.4.13
    

提交回复
热议问题