1 # OpenVINO™ Python* openvino.tools package
4 `openvino.tools` package includes:
5 * openvino.tools.accuracy_checker
6 * openvino.tools.benchmark
7 * openvino.tools.calibration
10 Please, refer to https://docs.openvinotoolkit.org for details.
13 Choose neccessary Python\* version and define `PYTHONPATH` environment variable.
17 Install prerequisites first:
21 **openvino.tools** is **Python 3** library. Install it first:
24 - [setuptools][setuptools]
27 sudo apt-get install python3 python3-dev python3-setuptools python3-pip
30 Python setuptools and python package manager (pip) install packages into system directory by default. There are several options:
32 - work inside [virtual environment][virtualenv] (best solution).
33 - use `--user` option for all `pip` commands.
34 - install all dependencies with *sudo* permissions.
36 In order to use virtual environment you should install it:
39 python3 -m pip install virtualenv
40 python3 -m virtualenv -p `which python3` <directory_for_environment>
43 Before starting to work inside virtual environment, it should be activated:
46 source <directory_for_environment>/bin/activate
49 Virtual environment can be deactivated using command
55 #### 2. Install package prerequisites
57 The next step is installing package prerequisites.
60 python3 -m pip install -r benchmark/requirements.txt calibration/requirements.txt
65 Each subpackage has specific configuration. Please, refer to specific subpackage documentation for details.
67 [python3]: https://www.python.org/downloads/
68 [setuptools]: https://pypi.python.org/pypi/setuptools