Skip to content

Commit 55b2092

Browse files
authored
update check install (openvinotoolkit#1755)
1 parent e76e0a9 commit 55b2092

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

check_install.py

+3-10
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def kernel_check():
6363

6464
IN_OPENVINO_ENV = "openvino_env" in sys.executable
6565
SUPPORTED_PYTHON_VERSION = PYTHON_VERSION.major == 3 and (
66-
PYTHON_VERSION.minor >= 6 and PYTHON_VERSION.minor <= 9
66+
PYTHON_VERSION.minor >= 8 and PYTHON_VERSION.minor <= 11
6767
)
6868
GLOBAL_OPENVINO_INSTALLED = "openvino_202" in os.environ.get(
6969
"LD_LIBRARY_PATH", ""
@@ -90,12 +90,9 @@ def kernel_check():
9090

9191
DEVTOOLS_INSTALLED = True
9292
try:
93-
import mo_onnx # OpenVINO 2021.4
93+
from openvino.tools.mo import mo # OpenVINO 2022.1
9494
except ImportError:
95-
try:
96-
from openvino.tools.mo import mo # OpenVINO 2022.1
97-
except ImportError:
98-
DEVTOOLS_INSTALLED = False
95+
DEVTOOLS_INSTALLED = False
9996

10097

10198
print("System information:")
@@ -141,10 +138,6 @@ def kernel_check():
141138
)
142139
if OS == "linux":
143140
print(
144-
"If you use Python 3.7 on Ubuntu/Debian Linux, you can install the Python\n"
145-
"libraries with `apt install libpython3.7-dev` (you may need to use `sudo`).\n"
146-
"On Ubuntu 20, libraries for Python 3.6 and 3.7 are not available to install\n"
147-
"with apt by default and it is recommended to use Python 3.8.\n"
148141
"If you have multiple Python version installed, use the full path to the Python\n"
149142
"executable for creating the virtual environment with a specific Python version.\n"
150143
"For example: `/usr/bin/python3.8 -m venv openvino_env`. Once you have activated\n"

0 commit comments

Comments
 (0)