问题
在Python中导入openvino时报错:from .ie_api import * ImportError: DLL load failed: 找不到指定的模块
Windows环境中安装Openvino的步骤此处不做说明,可参见官网教程:https://docs.openvinotoolkit.org/2019_R2/_docs_install_guides_installing_openvino_windows.html#set-the-environment-variables
当在python环境下导入openvino模块(openvino目录已复制到python的Lib目录下的site-packages中),如:
from openvino.inference_engine import IENetwork, IEPlugin
报如下错误:
Traceback (most recent call last):
File "", line 1, in <module>
File "C:\Python\Python36\lib\site-packages\openvino\inference_engine\__init__.py", line 1, in <module>
from .ie_api import *
ImportError: DLL load failed: 找不到指定的模块。
解决办法
将
C:\Program Files (x86)\IntelSWTools\openvino\deployment_tools\inference_engine\bin\intel64\Release
配置到PATH环境变量中即可。其中C:\Program Files (x86)\IntelSWTools为Openvino的默认安装路径。
配置后即可成功导入:
via https://www.it610.com/article/1187512672019652608.htm