Install opencv, under Windows using Python3.6 import cv2 prompt error?

Environment: windows64 bit, python3.6 64 bit.

downloaded opencv_python-3.4.3-cp36-cp36m-win_amd64.whl

copy the downloaded .whl to the pythonLibsite-packages folder. Start menu cmd enters the command window
installed successfully using pip install opencv_python.
.

enter Python, enter import cv2 prompt: ImportError: DLL load failed

so Baidu said that it was missing and installed Visual CPP2015 redistributable

.

but it"s still useless.

Aug.27,2021

I guess your computer is a windows home version. It is recommended to change it to a professional version, and it is even more recommended to do this kind of development under linux. This kind of problem is a normal phenomenon of windows.

Menu