{"id":45659,"library":"onnxruntime-openvino","title":"ONNX Runtime OpenVINO","description":"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.","status":"active","version":"1.24.1","language":"python","source_language":"en","source_url":"https://github.com/microsoft/onnxruntime","tags":["onnx","onnxruntime","openvino","inference"],"install":[{"cmd":"pip install onnxruntime-openvino","lang":"bash","label":"pip"}],"dependencies":[],"imports":[{"note":"Onnxruntime-openvino does not expose its own API; use onnxruntime package directly.","wrong":"from onnxruntime_openvino import InferenceSession","symbol":"InferenceSession","correct":"from onnxruntime import InferenceSession"}],"quickstart":{"code":"import onnxruntime\nimport numpy as np\n\n# Check OpenVINO execution provider is available\nproviders = onnxruntime.get_available_providers()\nassert 'OpenVINOExecutionProvider' in providers, 'OpenVINO not available'\n\n# Load model and run inference\nsession = onnxruntime.InferenceSession('model.onnx', providers=['OpenVINOExecutionProvider', 'CPUExecutionProvider'])\ninput_name = session.get_inputs()[0].name\noutput_name = session.get_outputs()[0].name\nresult = session.run([output_name], {input_name: np.random.randn(1,3,224,224).astype(np.float32)})\nprint(result[0].shape)","lang":"python","description":"Verify OpenVINO provider is available and run inference on a sample model."},"warnings":[{"fix":"Pin numpy<2.0 in your requirements: numpy<2.0","message":"onnxruntime-openvino 1.24.0+ requires numpy < 2.0. Installing incompatible numpy will cause import errors.","severity":"breaking","affected_versions":">=1.24.0"},{"fix":"Ensure you have onnxruntime (or just use this package, which depends on onnxruntime).","message":"The 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.","severity":"gotcha","affected_versions":"all"},{"fix":"Use Python >=3.10.","message":"Support for Python 3.8 and 3.9 is dropped starting version 1.20.0.","severity":"deprecated","affected_versions":">=1.20.0"}],"env_vars":null,"search_vec":"'1.24.1':23 '3.10':26 'acceler':14 'backend':33 'cross':9 'cross-platform':8 'execut':17 'hardwar':21 'infer':37 'intel':20 'learn':12 'machin':11 'model':13 'onnx':1,4,34 'onnxruntim':30,35 'openvino':3,16,32,36 'packag':28 'platform':10 'provid':18 'python':25 'runtim':2,5 'support':24 'version':22 'wrap':29","created_at":"2026-06-07T12:56:05.789942+00:00","updated_at":"2026-06-07T12:56:05.789942+00:00","problems":[{"fix":"Install onnxruntime-openvino: pip install onnxruntime-openvino. It pulls onnxruntime automatically.","cause":"onnxruntime-openvino does not import as 'onnxruntime_openvino'; you need to import 'onnxruntime', which should be installed as a dependency.","error":"ModuleNotFoundError: No module named 'onnxruntime'"},{"fix":"pip install onnxruntime-openvino (with correct version matching hardware and Python)","cause":"onnxruntime-openvino is not installed or an incompatible version is installed.","error":"ValueError: This ORT build has [ 'CPUExecutionProvider' ] enabled. Please install or upgrade onnxruntime-openvino to use OpenVINO."},{"fix":"Check OpenVINO installation and ensure you imported onnxruntime (not onnxruntime_openvino).","cause":"OpenVINO runtime not installed or not compatible with the onnxruntime-openvino version.","error":"AssertionError: OpenVINO not available"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://onnxruntime.ai","github":null,"docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["ai-ml"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-06-29","last_verified":"2026-06-29","next_check":"2026-07-29","install_tag":null}}