python报错找不到指定的模块_【转】在Python中导入openvino时报错,找不到指定的模块...

没有检索到摘要

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

问题

在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

File "C:\Python\Python36\lib\site-packages\openvino\inference_engine\__init__.py", line 1, in

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值