Registry / ai-ml / onnxruntime-openvino

onnxruntime-openvino

JSON →
library1.24.1pypypi✓ verified 90d ago

ONNX Runtime is a cross-platform machine learning model accelerator with OpenVINO execution provider for Intel hardware. Version 1.24.1 supports Python >=3.10. This package wraps onnxruntime with OpenVINO backend.

pip install onnxruntime-openvino
INSTALL
IMPORT
SIG · ONNXRUNTIME-OPENVI
O
onnxruntime-openvino
ai-mlpythonv1.24.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

InferenceSession
✓ from onnxruntime import InferenceSession
✗ from onnxruntime_openvino import InferenceSession
Onnxruntime-openvino does not expose its own API; use onnxruntime package directly.

Verify OpenVINO provider is available and run inference on a sample model.

import onnxruntime import numpy as np # Check OpenVINO execution provider is available providers = onnxruntime.get_available_providers() assert 'OpenVINOExecutionProvider' in providers, 'OpenVINO not available' # Load model and run inference session = onnxruntime.InferenceSession('model.onnx', providers=['OpenVINOExecutionProvider', 'CPUExecutionProvider']) input_name = session.get_inputs()[0].name output_name = session.get_outputs()[0].name result = session.run([output_name], {input_name: np.random.randn(1,3,224,224).astype(np.float32)}) print(result[0].shape)
Debug
Known issues
breakingonnxruntime-openvino 1.24.0+ requires numpy < 2.0. Installing incompatible numpy will cause import errors.
fix
Pin numpy<2.0 in your requirements: numpy<2.0
affects: >=1.24.0
gotchaThe onnxruntime-openvino package only provides the OpenVINO execution provider; you must still install onnxruntime separately if not already present, or use this package as a drop-in replacement for onnxruntime.
fix
Ensure you have onnxruntime (or just use this package, which depends on onnxruntime).
affects: all
deprecatedSupport for Python 3.8 and 3.9 is dropped starting version 1.20.0.
fix
Use Python >=3.10.
affects: >=1.20.0
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'onnxruntime'
onnxruntime-openvino does not import as 'onnxruntime_openvino'; you need to import 'onnxruntime', which should be installed as a dependency.
fix
Install onnxruntime-openvino: pip install onnxruntime-openvino. It pulls onnxruntime automatically.
ValueError: This ORT build has [ 'CPUExecutionProvider' ] enabled. Please install or upgrade onnxruntime-openvino to use OpenVINO.
onnxruntime-openvino is not installed or an incompatible version is installed.
fix
pip install onnxruntime-openvino (with correct version matching hardware and Python)
AssertionError: OpenVINO not available
OpenVINO runtime not installed or not compatible with the onnxruntime-openvino version.
fix
Check OpenVINO installation and ensure you imported onnxruntime (not onnxruntime_openvino).
Upgrade
Version history
1.24.1latest on PyPI · released Feb 26, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Resources
onnxruntime-openvino — pip install onnxruntime-openvino · libregistry