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)
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.
fixInstall 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.
fixpip 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.
fixCheck 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.