Article ID: 000059190 Content Type: Error Messages Last Reviewed: 05/20/2022

Encountered Error: " No module named 'openvino'." when Running any OpenVINO™ toolkit Sample or Demo

Environment

Ubuntu* 18.04.x long-term support (LTS), 64-bit Ubuntu 20.04.0 long-term support (LTS), 64-bit Raspbian* Buster, 32-bit Raspbian Stretch, 32-bit Windows® 10 64-bit macOS* 10.15

Mac OS*, Windows® 10, 64-bit*

BUILT IN - ARTICLE INTRO SECOND COMPONENT
Summary

How to update OpenVINO™ toolkit environment variables for various supported operating systems (OS)

Description

Executed OpenVINO™ toolkit object detection demo but received error: No module named 'openvino'.

Resolution

For Windows*

Run setupvars.bat in the terminal:

"<INSTALL_DIR>\openvino_<version>\bin\setupvars.bat"

For Linux*, macOS*, and Raspbian* OS

Run setupvars.sh in the terminal:

source /opt/intel/openvino_<version>/bin/setupvars.sh

Additional information

Run setupvars script for every new terminal because OpenVINO™ toolkit environment variables are removed when the terminal is closed.

Related Products

This article applies to 3 products