Improve pip installation guide (#2644)

* Improve pip installation guide

* Updated after comments
This commit is contained in:
Anton Romanov
2020-10-14 05:18:39 -04:00
committed by GitHub
parent 3c4b116895
commit f050de86dd

View File

@@ -25,12 +25,35 @@ This guide provides installation steps for the Intel® distribution of OpenVINO
3. Add PATH to environment variables.
- Ubuntu* 18.04 and macOS*:
```sh
export LD_LIBRARY_PATH=<python_dir>/lib:${LD_LIBRARY_PATH}
export LD_LIBRARY_PATH=<library_dir>:${LD_LIBRARY_PATH}
```
- Windows* 10:
```sh
set PATH=<python_dir>/Library/bin;%PATH%
set PATH=<library_dir>;%PATH%
```
How to find `library_dir`:
- Ubuntu\*, macOS\*:
- standard user:
```sh
echo $(python3 -m site --user-base)/lib
```
- root or sudo user:
```sh
/usr/local/lib
```
- virtual environments or custom Python installations (from sources or tarball):
```sh
echo $(which python3)/../../lib
```
- Windows\*:
- standard Python:
```sh
python -c "import os, sys; print((os.path.dirname(sys.executable))+'\Library\\bin')"
```
- virtual environments or custom Python installations (from sources or tarball):
```sh
python -c "import os, sys; print((os.path.dirname(sys.executable))+'\..\Library\\bin')"
```
4. Verify that the package is installed:
```sh
python3 -c "import openvino"