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

Introduction

When using IDE pycharm under windows, it is
import cv2 as cvnormal , but it appears when running, but there ImportError: DLL load failed: 找不到指定的模块。
is no problem with python command line execution, indicating that the opencv library is successfully installed, but the dynamic library fails to be loaded at runtime.

solution

The reason for this problem is that python3.dll is missing in the project directory. This file can be copied from the python3 installation directory to venv\Scripts in the project directory.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325813102&siteId=291194637