简体   繁体   English

openvino python 推断 api 导入错误

[英]openvino python inference api import error

I want to use openvino for object detection.我想使用 openvino 进行 object 检测。
I installed it in conda environment on ubuntu 20.我将它安装在 ubuntu 20 的 conda 环境中。

I added this line in.bashrc:我在.bashrc 中添加了这一行:

export LD_LIBRARY_PATH=/home/user/anaconda3/envs/openvino/bin/python3/../../lib:${LD_LIBRARY_PATH}

I run after:我追赶:

source .bashrc

which python  # gives /home/user/anaconda3/envs/openvino/bin/python
echo $PYTHONPATH # does not return anything

I try to import:我尝试导入:

from openvino.inference_engine import IENetwork, IECore

I go this error:我 go 这个错误:

from.ie_api import *从.ie_api 导入 *
ImportError: libtbb.so.2: cannot open shared object file: No such file or directory ImportError:libtbb.so.2:无法打开共享 object 文件:没有这样的文件或目录

Make sure you had carefully followed these installation step .确保您已仔细遵循这些安装步骤 You should be able to run the examples if you had set the OpenVINO toolkit and its pre-requisite correctly.如果您正确设置了 OpenVINO 工具包及其先决条件,您应该能够运行这些示例。

Afterward, you can try to proceed with your attempt.之后,您可以尝试继续您的尝试。 Please take note that currently only these Operating Systems are supported:请注意,目前仅支持以下操作系统:

Ubuntu 18.04.x long-term support (LTS), 64-bit Ubuntu 18.04.x长期支持 (LTS),64 位

CentOS 7.6, 64-bit (for target only) CentOS 7.6,64 位(仅适用于目标)

Yocto Project v3.0, 64-bit (for target only and requires modifications) Yocto Project v3.0,64 位(仅适用于目标,需要修改)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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