ImportError: DLL load failed: The specified procedure could not be found. Python

后端 未结 5 1074
隐瞒了意图╮
隐瞒了意图╮ 2020-12-06 11:40

Recently, I have installed a current version of Python(x,y) package (2.7.6.0) and now when I run my python code, it shows an error:

Traceback (most recent c         


        
5条回答
  •  离开以前
    2020-12-06 11:52

    the following worked for me. Assuming that Python(X,Y) is installed (and the option for OpenCV was checked at the beginning of the installation), I did the following steps:

    1. Download opencv-2.4.13, and extract file in a given folder.
    2. Copy file "cv2.pyd" (which is a file of 10MB)
    3. Replace the file cv2.pyd in the "...\Lib\site-packages" folder. You will notice that the original "cv2.pyc" file size is below 2MB.
    4. Start Python(x,y) and the Spyder. Type "cv2.version" in the Python console. You may get >>> cv2.version -> '2.4.13'
    5. OpenCV is now working!

提交回复
热议问题