Adds Python wheel requirements info to docs (#19125)

This commit is contained in:
Maciej Smyk
2023-08-10 19:50:10 +02:00
committed by GitHub
parent 0e0d166746
commit eabf199c3a
2 changed files with 8 additions and 2 deletions

View File

@@ -78,7 +78,10 @@ You can use the following additional build options:
-DPYTHON_LIBRARY=/usr/lib/x86_64-linux-gnu/libpython3.7m.so \
-DPYTHON_INCLUDE_DIR=/usr/include/python3.7
```
3. To build a wheel package (.whl), enable the `-DENABLE_WHEEL=ON` option in the CMake step above (Step 4):
3. To build a wheel package (.whl), enable the `-DENABLE_WHEEL=ON` option in the CMake step above (Step 4), and install requirements:
```sh
pip install -r <openvino source tree>/src/bindings/python/wheel/requirements-dev.txt
```
4. After the build process finishes, export the newly built Python libraries to the user environment variables:
```
export PYTHONPATH=PYTHONPATH:<openvino_repo>/bin/intel64/Release/python_api/python3.7

View File

@@ -75,7 +75,10 @@ Supported configurations:
-DPYTHON_LIBRARY="C:\Program Files\Python11\libs\python11.lib" ^
-DPYTHON_INCLUDE_DIR="C:\Program Files\Python11\include"
```
3. To build a wheel package (.whl), enable the `-DENABLE_WHEEL=ON` option in the CMake step above (Step 4):
3. To build a wheel package (.whl), enable the `-DENABLE_WHEEL=ON` option in the CMake step above (Step 4), and install requirements:
```sh
pip install -r <openvino source tree>\src\bindings\python\wheel\requirements-dev.txt
```
4. After the build process finishes, export the newly built Python libraries to the user environment variables:
```
set PYTHONPATH=<openvino_repo>/bin/<arch>/Release/python_api/python3.11;%PYTHONPATH%