Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.

please provide pip/conda installs

TX__Vlad
Beginner
997 Views

Current instructions for installing openVINO on Linux assume that the end user will be able to execute a lengthy list of native OS packages via install_openvino_dependencies.sh, which requires root/sudo privileges.

This will not be possible in many (most ?) corporate environments. It is, however, common to allow users to create virtualenvs or conda envs and extend these respective env types with public packages. Now that there is an LTS release it would be great to be able to install openvino via pip or conda.

0 Kudos
10 Replies
Iffa_Intel
Moderator
997 Views

Greetings,

It is great to be able to use Anaconda to handle packages of Pythons in Windows as manual installation would take much more efforts. This is the reason  most users use Anaconda in Windows.

In Linux, the installation of Python is easier and most Linux already came with Python & you can already do pretty much everything in Linux eg: virtual env.

No matter what programming language you are using, you need to have Openvino toolkits compatible with your OS

Here is the documentation:

https://docs.openvinotoolkit.org/latest/_docs_install_guides_installing_openvino_windows.html

After having the toolkit in your OS environment, you can start using anaconda to run your python models.

And it's good if you are able to run  the anaconda as admin since it would give access for the file modifications and etc. In Linux, root access is required due to this reasons too.

Here is anaconda documentation, you can find pretty much everything here: https://docs.anaconda.com/anaconda/user-guide/getting-started/#open-prompt-win

Hope my answer helps!

Sincerely,

Iffa

0 Kudos
TX__Vlad
Beginner
993 Views

And it's good if you are able to run  the anaconda as admin since it would give access for the file modifications and etc. In Linux, root access is required due to this reasons too.

No, I am afraid that is not correct. Anaconda and pip do not require root access since they allow installations into local environment directories (e.g. under user's HOME on Linux).

Again, I repeat that openVINO installation on Linux is impossible without sudo/root privileges because it requires either using Docker (which requires sudo) or installing a number of dependencies via yum/apt-get (which requires sudo).

0 Kudos
Iffa_Intel
Moderator
997 Views

Greetings,

The highlighted comment above is my recommendation, you can handle those lengthy bash installation by yourself one by one or to give the system root/admin, it is your choice.

The main point here is you need to install the Openvino Toolkit into your Operating System Environment (which is Linux I believe) before running anything in anaconda"

https://docs.openvinotoolkit.org/latest/_docs_get_started_get_started_linux.html

Please note that the Toolkit cannot be installed using Python command, it need to be installed into your OS environment, you need to use Linux shell for that.

Anaconda as I believe you already know is just a Python library manager,  only anything related to the  python algorithm (such as model optimizer) can be downloaded from pip (installation command for Python).

Most Linux OS Security would not allow bash file to be executed without root privilege. This would cause backdoor/virus attack to user's system.

In fact, you cannot install most everything without admin/root right to your OS. If this is your company's laptop you can try to request for approval from your authorities.

Hope my answer helps.

Sincerely,

Iffa

0 Kudos
TX__Vlad
Beginner
997 Views

Most Linux OS Security would not allow bash file to be executed without root privilege.

You are completely mistaken. 

0 Kudos
Iffa_Intel
Moderator
993 Views

well you also mentioned this

"Current instructions for installing openVINO on Linux assume that the end user will be able to execute a lengthy list of native OS packages via install_openvino_dependencies.sh, which requires root/sudo privileges."

You can investigate a topic called privilege escalation & why malwares creates bash files to have root privileges if you are interested.

I hope I had answered your main concern regarding Openvino toolkit installation which need to happen in Linux OS instead of the Python Library manager, Anaconda

Thanks & have a great day ahead.

Sincerely,

Iffa

0 Kudos
TX__Vlad
Beginner
993 Views

"pip install ..." does not require root/sudo privileges.

"conda install ..." does not require root/sudo privileges.

0 Kudos
Iffa_Intel
Moderator
993 Views

Yes correct, those are Python command and Anaconda command, Not Linux shell command.

Please note that,These are different type of command.

You can refer here for Linux shell command : https://docs.cs.cf.ac.uk/notes/linux-shell-commands/

Here for Python Shell command: https://www.pythoncheatsheet.org/

&Here is anaconda shell command: https://conda.io/projects/conda/en/latest/_downloads/843d9e0198f2a193a3484886fa28163c/conda-cheatsheet.pdf

Linux shell comes first in anything, anaconda wont be able to work if you did not install it in your Linux, same as this Openvino toolkit.

Sincerely,

Iffa

0 Kudos
TX__Vlad
Beginner
993 Views

My original request was for Intel to make openVINO installable by doing

>pip install openvino

or 

>conda install openvino

without any other pre-requisites. Just like it is possible to do "pip install intel-tensorflow", etc

0 Kudos
Iffa_Intel
Moderator
997 Views

Even if you are able to obtain the Openvino directories, you still need to install the Toolkit into your Linux OS.

This require the Linux shell command (root privilege) sudo ./install_GUI.sh  OR   sudo ./install.sh

You can try to run this by navigating to the dir through your anaconda but you still need to run this Linux Shell command.

As I said, this installer will modify certain file in your Linux OS, hence it require root access.

Please help to carefully read this official Openvino documentation:

https://docs.openvinotoolkit.org/latest/_docs_install_guides_installing_openvino_linux.html

Openvino has many version too, ensure you downloaded the right version and download form official source

Plus, you need to register before able to download it : https://software.intel.com/content/www/us/en/develop/tools/openvino-toolkit/choose-download/linux.html

Please help to read the one by one instructions carefully.

Note that the Toolkit is crucial to be installed into your Linux environment before you able to do anything with Model Optimizer

Sincerely,

Iffa

0 Kudos
Iffa_Intel
Moderator
997 Views

Greetings,

 Fyi,just a few days ago we got some openvino-ie packages published in conda repo - https://anaconda.org/intel/repo

As I see, it is  Inference Engine only.

As for the “pip” installation, this is not yet officially supported, but this might happen at some point in future.

 

Sincerely,

Iffa

0 Kudos
Reply