Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot install Openvino with pip

I'm trying to install Openvino to convert a Keras model into a representation for the inference engine. I'm running the command:

python3 openvino/tools/mo/mo_tf.py —model_13.h5/ --input_shape=\[180,180\]

This returns the error:

from openvino.tools.mo.subprocess_main import subprocess_main
ModuleNotFoundError: No module named 'openvino'

I've tried pip install openvino but consistently get:

ERROR: Could not find a version that satisfies the requirement openvino (from versions: none)
ERROR: No matching distribution found for openvino

To try and make sure the versions of python for running the script and installing Openvino are the same, I've tried:

python3 -m pip install openvino

The content of the mo_tf.py script is simply:

#!/usr/bin/env python3

# Copyright (C) 2018-2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0


if __name__ == "__main__":
    from openvino.tools.mo.subprocess_main import subprocess_main
    subprocess_main(framework='tf')

Has anyone seen this issue and found a workaround?

like image 800
NominalSystems Avatar asked Mar 27 '26 03:03

NominalSystems


1 Answers

The latest version of openvino is 2021.4.2. The list of packages to download by pip includes packages for Python 3.6-3.9 for Linux, MacOS on Intel, and Windows; only packages for 64-bit platforms are provided. No packages for Python 3.10 and no source code.

The solution is either to compile from sources, or install with Docker or install from Anaconda. Or downgrade to Python 3.9.

like image 126
phd Avatar answered Mar 28 '26 16:03

phd



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!