Install OpenVINO™ Runtime from Conda Forge#
Note
Note that the Conda Forge distribution:
offers both C/C++ and Python APIs
does not offer support for NPU inference
is dedicated to users of all major OSes: Windows, Linux, and macOS (all x86_64 / arm64 architectures)
Installing OpenVINO Runtime with Anaconda Package Manager#
Set up the Anaconda environment (Python 3.10 used as an example):
conda create --name py310 python=3.10
conda activate py310
Update it to the latest version:
conda update --all
Install the OpenVINO Runtime package:
conda install -c conda-forge openvino=2024.4.0
Congratulations! You’ve just Installed OpenVINO! For some use cases you may still need to install additional components. Check the description below, as well as the list of additional configurations to see if your case needs any of them.
Enabling GPU device for inference#
To use a GPU device for OpenVINO inference on Linux, you must install OpenCL ICD:
conda install ocl-icd-system
This step is not required on Windows, as Intel® Graphics Compute Runtime for OpenCL™ Driver is included with the Intel® Graphics Driver package.
Compiling with OpenVINO Runtime from Conda-Forge on Linux#
When linking OpenVINO libraries from Conda on Linux, ensure that you have the necessary Conda compilers installed and Conda standard libraries are used. To do so, run the following command in your Conda environment:
conda install cmake c-compiler cxx-compiler make
conda env config vars set LD_LIBRARY_PATH=$CONDA_PREFIX/lib:$LD_LIBRARY_PATH
It is crucial to reactivate your Conda environment after installing the compilers. This step ensures that all the environment variables are set correctly for successful linkage.
To reactivate your Conda environment, execute the following command:
conda activate py310
Once you have reactivated your Conda environment, make sure that all the necessary environment variables are properly set and proceed with linking the OpenVINO libraries.
Installing specific components of OpenVINO from Conda Forge#
You do not have to install the entire OpenVINO package. You can install selected components by using:
conda install conda-forge::<component_name>
<component_name>
may be one of the components of OpenVINO listed below:
libopenvino-auto-batch-plugin
libopenvino-auto-plugin
libopenvino-hetero-plugin
libopenvino-intel-cpu-plugin
libopenvino-intel-gpu-plugin
libopenvino-intel-npu-plugin
libopenvino-ir-frontend
libopenvino-onnx-frontend
libopenvino-paddle-frontend
libopenvino-pytorch-frontend
libopenvino-tensorflow-frontend
libopenvino-tensorflow-lite-frontend
libopenvino-dev
libopenvino-python
libopenvino-arm-cpu-plugin
For example, to install a single component, use:
conda install conda-forge::libopenvino-intel-cpu-plugin
For multiple components, use:
conda install conda-forge::libopenvino-intel-cpu-plugin conda-forge::libopenvino-arm-cpu-plugin conda-forge::libopenvino-intel-npu-plugin conda-forge::libopenvino-intel-gpu-plugin
Uninstalling OpenVINO™ Runtime#
Once OpenVINO Runtime is installed via Conda, you can remove it, using the following command, with the proper OpenVINO version number:
conda remove openvino=2024.4.0
If you have installed specific components of OpenVINO, you can remove them, using:
conda remove conda-forge::<component_name>
What’s Next?#
Now that you’ve installed OpenVINO Runtime, you are ready to run your own machine learning applications! To learn more about how to integrate a model in OpenVINO applications, try out some tutorials and sample applications.
Try the C++ Quick Start Example for step-by-step instructions on building and running a basic image classification C++ application.
Visit the Samples page for other C++ example applications to get you started with OpenVINO, such as: