“DLL load failed” when import cv2 (opencv)

前端 未结 15 1087
萌比男神i
萌比男神i 2020-12-14 08:45

In [windows server 2012 R2 x64, python 3.7 64x]

pip install opencv-contrib-python

installed without any error .
and when I try to impor

15条回答
  •  情歌与酒
    2020-12-14 09:05

    I had the same problem on Windows Server 2012 R2 x64. I was creating executable file using PyInstaller and got error in runtime:

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

    After installing "Visual C++ redistributable" 2015 and enabling "Media Foundation" feature my problem was resolved.

    There is more informations in documentation: OpenCV Documentation

提交回复
热议问题