OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
[PyOV] Add instruction on how to build free threaded Python API (#31898)
Przemyslaw Wysocki7182e7918186
diff --git a/src/bindings/python/docs/build.md b/src/bindings/python/docs/build.mdindex 324b3f64079..57bedb5b216 100644--- a/src/bindings/python/docs/build.md+++ b/src/bindings/python/docs/build.md@@ -14,6 +14,15 @@ While wheels make installation easier, using wheels for development offers lessTo learn more about wheels and their use cases, check out the article [What Are Python Wheels and Why Should You Care?](https://realpython.com/python-wheels/).+## Experimental free threaded Python build+To build the OpenVINO™ Python API with experimental free threaded Python support, add the following flag to your `cmake` command:++```shell+-DENABLE_GIL_PYTHON_API=OFF+```++This disables the Global Interpreter Lock (GIL) in the Python API, enabling free threading. Note that this feature is experimental and may not be fully supported in all environments.+## Virtual environmentsOpenVINO can be built based on specific virtual environments such as [venv](https://docs.python.org/3/tutorial/venv.html), [virtualenv](https://virtualenv.pypa.io/en/latest/) or [pyenv](https://github.com/pyenv/pyenv). It is highly recommended to use virtual environments during development. They improve development process and allow better management of Python versions and packages.