linux python 套装,如何使用 Python* API 包装器OpenVINO™ Linux* 的开源工具套件

建立来源。

有关更多详细信息 ,请参阅 Linux 构建程序说明。

$ git clone https://github.com/openvinotoolkit/openvino.git

$ cd openvino

$ git submodule update --init --recursive

$ chmod +x install_dependencies.sh

$ ./install_dependencies.sh

$ mkdir build && cd build

注意在下面的 CMake 命令行中,以 Python* 版本替换 3.6。 Python 的位置取决于架构和操作系统。

$ cmake -DCMAKE_BUILD_TYPE=Release \

-DENABLE_PYTHON=ON \

-DPYTHON_EXECUTABLE=`which python3.6` \

-DPYTHON_LIBRARY=/usr/lib/x86_64-linux-gnu/libpython3.6m.so \

-DPYTHON_INCLUDE_DIR=/usr/include/python3.6 ..

$ make --jobs=$(nproc --all)