pythondllimporterroropenvinopyd

ImportError: DLL load failed while importing ie_api:


enter image description here

from openvino.inference_engine import IECore()

If IECore() is imported for inferrence through openvino, the above error occurs.

I tried various environment variables and various things, but it didn't work. The imported environment is a virtual environment, but site-package was located in:

C:/USERS/USER/AppData/Roaming/Python/Python38/site-packages/openvino.

How can we solve this case?


Solution

  • You problably need to call the setupvars.bat script to initialize OpenVINO. Depending on the OV version it can be found directly in the openvino directory or in openvino/bin.