简体   繁体   中英

ImportError: DLL load failed while importing ie_api:

在此处输入图像描述

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?

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 .

The error is due to the OpenVINO environment is not configured. Open the Command Prompt, and run the setupvars.bat batch file to temporarily set your environment variables before compiling and running OpenVINO applications.

#Credit to tomdol

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM