diff --git a/.github/github_org_control/configs.py b/.github/github_org_control/configs.py index 493fd9e3eed..92ba0a96c2d 100644 --- a/.github/github_org_control/configs.py +++ b/.github/github_org_control/configs.py @@ -14,8 +14,8 @@ import json from pathlib import Path -if sys.version_info[:2] < (3, 6): - raise Exception("Python version must be >= 3.6") +if sys.version_info[:2] < (3, 7): + raise Exception("Python version must be >= 3.7") class ConfigException(Exception): diff --git a/cmake/developer_package/ncc_naming_style/requirements_dev.txt b/cmake/developer_package/ncc_naming_style/requirements_dev.txt index fb57a4f6df1..ba8aea0d637 100644 --- a/cmake/developer_package/ncc_naming_style/requirements_dev.txt +++ b/cmake/developer_package/ncc_naming_style/requirements_dev.txt @@ -1,4 +1,3 @@ -clang==10.0.1; python_version == '3.6' clang==11.1.0; python_version == '3.7' clang==12.0.1; python_version == '3.8' clang==12.0.1; python_version == '3.9' diff --git a/docs/MO_DG/prepare_model/convert_model/tf_specific/Convert_XLNet_From_Tensorflow.md b/docs/MO_DG/prepare_model/convert_model/tf_specific/Convert_XLNet_From_Tensorflow.md index c577a4574e4..761dde06470 100644 --- a/docs/MO_DG/prepare_model/convert_model/tf_specific/Convert_XLNet_From_Tensorflow.md +++ b/docs/MO_DG/prepare_model/convert_model/tf_specific/Convert_XLNet_From_Tensorflow.md @@ -37,8 +37,6 @@ To get pb-file from the archive contents, you need to do the following. 2. Save and run the following Python script in `~/XLNet-Base/xlnet`: -> **NOTE**: The original model repository has been tested with TensorFlow 1.13.1 under Python2. - ```python from collections import namedtuple diff --git a/docs/dev/build.md b/docs/dev/build.md index 1ee1250284b..5eb41a9f117 100644 --- a/docs/dev/build.md +++ b/docs/dev/build.md @@ -27,7 +27,7 @@ For the OpenVINO build next tools are required: - [CMake]\* 3.14 or higher - Microsoft\* Visual Studio 2019, version 16.8 or later - (Optional) Intel® Graphics Driver for Windows* (30.0) [driver package](https://www.intel.com/content/www/us/en/download/19344/intel-graphics-windows-dch-drivers.html). -- Python 3.6 or higher for OpenVINO Runtime Python API +- Python 3.7 or higher for OpenVINO Runtime Python API - [Git for Windows*](https://gitforwindows.org/)

@@ -37,7 +37,7 @@ For the OpenVINO build next tools are required: - [CMake] 3.13 or higher - GCC 7.5 or higher to build OpenVINO Runtime -- Python 3.6 or higher for OpenVINO Runtime Python API +- Python 3.7 or higher for OpenVINO Runtime Python API - (Optional) [Install Intel® Graphics Compute Runtime for OpenCL™ Driver package 19.41.14441] to enable inference on Intel integrated GPUs.

@@ -55,7 +55,7 @@ For the OpenVINO build next tools are required: % xcode-select --install ``` - The step to install python and python libraries is different depending on host architecture: - - **x86_64** Python\* 3.6 or higher for the OpenVINO Runtime Python API, Development tools (Model Optimizer, POT and others): + - **x86_64** Python\* 3.7 or higher for the OpenVINO Runtime Python API, Development tools (Model Optimizer, POT and others): ```sh % # let's have a look what python versions are available in brew % brew search python diff --git a/docs/install_guides/installing-openvino-from-archive-linux.md b/docs/install_guides/installing-openvino-from-archive-linux.md index 7a766bb447b..11bbf8ed5be 100644 --- a/docs/install_guides/installing-openvino-from-archive-linux.md +++ b/docs/install_guides/installing-openvino-from-archive-linux.md @@ -44,8 +44,7 @@ See the [Release Notes](https://software.intel.com/en-us/articles/OpenVINO-RelNo * `CMake 3.13 or higher, 64-bit `_ * GCC 7.5.0 (for Ubuntu 18.04) or GCC 9.3.0 (for Ubuntu 20.04) - * `Python 3.6 - 3.10, 64-bit `_ - * Note that OpenVINO is gradually stopping the support for Python 3.6. You are encouraged to use Python 3.7 - 3.10. + * `Python 3.7 - 3.9, 64-bit `_ @endsphinxdirective diff --git a/docs/install_guides/installing-openvino-from-archive-macos.md b/docs/install_guides/installing-openvino-from-archive-macos.md index c10853bed61..daf9a8a11b5 100644 --- a/docs/install_guides/installing-openvino-from-archive-macos.md +++ b/docs/install_guides/installing-openvino-from-archive-macos.md @@ -37,8 +37,7 @@ See the [Release Notes](https://software.intel.com/en-us/articles/OpenVINO-RelNo .. tab:: Software Requirements * `CMake 3.13 or higher `_ (choose "macOS 10.13 or later"). Add `/Applications/CMake.app/Contents/bin` to path (for default install). - * `Python 3.6 - 3.10 `_ (choose 3.6 - 3.10). Install and add to path. - * Note that OpenVINO is gradually phasing out the support for Python 3.6. You are encouraged to use Python 3.7 - 3.10. + * `Python 3.7 - 3.10 `_ (choose 3.7 - 3.9). Install and add to path. * Apple Xcode Command Line Tools. In the terminal, run `xcode-select --install` from any directory * (Optional) Apple Xcode IDE (not required for OpenVINO™, but useful for development) diff --git a/docs/install_guides/installing-openvino-from-archive-windows.md b/docs/install_guides/installing-openvino-from-archive-windows.md index f2b76cae132..51eb420d0d5 100644 --- a/docs/install_guides/installing-openvino-from-archive-windows.md +++ b/docs/install_guides/installing-openvino-from-archive-windows.md @@ -40,8 +40,7 @@ See the [Release Notes](https://software.intel.com/en-us/articles/OpenVINO-RelNo * `Microsoft Visual Studio 2019 with MSBuild `_ or `Microsoft Visual Studio 2022 `_ * `CMake 3.14 or higher, 64-bit `_ (optional, only required for building sample applications) - * `Python 3.6 - 3.10, 64-bit `_ - * Note that OpenVINO is gradually phasing out support for Python 3.6. You are encouraged to use Python 3.7 - 3.10. + * `Python 3.7 - 3.10, 64-bit `_ .. note:: To install Microsoft Visual Studio 2019, follow the `Microsoft Visual Studio installation guide `_. You can choose to download the Community version. During installation in the **Workloads** tab, choose **Desktop development with C++**. diff --git a/docs/notebooks-installation.md b/docs/notebooks-installation.md index 25ed197cdbb..f9c152f6b9f 100644 --- a/docs/notebooks-installation.md +++ b/docs/notebooks-installation.md @@ -43,20 +43,18 @@ The table below lists the supported operating systems and Python versions. | | (64-bit | | | ) `__ | +=====================================+================================+ -| Ubuntu 18.04 LTS | 3.6, 3.7, 3.8, 3.9, 3.10 | +| Ubuntu 18.04 LTS | 3.7, 3.8, 3.9, 3.10 | +-------------------------------------+--------------------------------+ -| Ubuntu 20.04 LTS | 3.6, 3.7, 3.8, 3.9, 3.10 | +| Ubuntu 20.04 LTS | 3.7, 3.8, 3.9, 3.10 | +-------------------------------------+--------------------------------+ -| Red Hat Enterprise Linux 8 | 3.6, 3.8, 3.9, 3.10 | +| Red Hat Enterprise Linux 8 | 3.8, 3.9, 3.10 | +-------------------------------------+--------------------------------+ -| CentOS 7 | 3.6, 3.7, 3.8, 3.9, 3.10 | +| macOS 10.15.x versions | 3.7, 3.8, 3.9, 3.10 | +-------------------------------------+--------------------------------+ -| macOS 10.15.x versions | 3.6, 3.7, 3.8, 3.9, 3.10 | -+-------------------------------------+--------------------------------+ -| Windows 10 Pro, Enterprise | 3.6, 3.7, 3.8, 3.9, 3.10 | +| Windows 10 Pro, Enterprise | 3.7, 3.8, 3.9, 3.10 | | or Education editions | | +-------------------------------------+--------------------------------+ -| Windows Server 2016 or higher | 3.6, 3.7, 3.8, 3.9, 3.10 | +| Windows Server 2016 or higher | 3.7, 3.8, 3.9 | +-------------------------------------+--------------------------------+ OpenVINO Notebooks also require Git. Follow the guide below for your @@ -69,7 +67,7 @@ operating system or environment. 1. **Install Python** - Download 64 bit version of Python software (3.6, 3.7, 3.8, 3.9, 3.10) from `python.org`_. + Download 64 bit version of Python software (3.7, 3.8, 3.9, 3.10) from `python.org`_. .. _python.org: https://www.python.org/downloads/windows/ diff --git a/docs/openvino_sphinx_theme/setup.py b/docs/openvino_sphinx_theme/setup.py index 4c0469e2a11..dd825a37dfe 100644 --- a/docs/openvino_sphinx_theme/setup.py +++ b/docs/openvino_sphinx_theme/setup.py @@ -12,7 +12,7 @@ setup( include_package_data=True, entry_points={"sphinx.html_themes": ["openvino_sphinx_theme = openvino_sphinx_theme"]}, install_requires=['pydata_sphinx_theme', 'sphinx_inline_tabs'], - python_requires='>=3.5', + python_requires='>=3.7', url='https://github.com/openvinotoolkit/openvino', license='', author='Intel Corporation', diff --git a/scripts/setupvars/setupvars.bat b/scripts/setupvars/setupvars.bat index de50821aaf5..951276de568 100644 --- a/scripts/setupvars/setupvars.bat +++ b/scripts/setupvars/setupvars.bat @@ -62,7 +62,7 @@ set "PATH=%OPENVINO_LIB_PATHS%;%PATH%" :: Check if Python is installed set PYTHON_VERSION_MAJOR=3 -set MIN_REQUIRED_PYTHON_VERSION_MINOR=6 +set MIN_REQUIRED_PYTHON_VERSION_MINOR=7 set MAX_SUPPORTED_PYTHON_VERSION_MINOR=9 python --version 2>NUL diff --git a/scripts/setupvars/setupvars.sh b/scripts/setupvars/setupvars.sh index 3ae75a38631..f21edbf5a68 100755 --- a/scripts/setupvars/setupvars.sh +++ b/scripts/setupvars/setupvars.sh @@ -99,7 +99,7 @@ if command -v lsb_release >/dev/null 2>&1; then fi PYTHON_VERSION_MAJOR="3" -MIN_REQUIRED_PYTHON_VERSION_MINOR="6" +MIN_REQUIRED_PYTHON_VERSION_MINOR="7" MAX_SUPPORTED_PYTHON_VERSION_MINOR="9" check_python_version () { diff --git a/src/plugins/intel_gpu/README.md b/src/plugins/intel_gpu/README.md index 02d1d0677aa..ead8e7811d9 100644 --- a/src/plugins/intel_gpu/README.md +++ b/src/plugins/intel_gpu/README.md @@ -41,7 +41,7 @@ The software dependencies are: > Intel® CPU intrinsics header (``) must be available during compilation. -- [python™](https://www.python.org/downloads/) 2.7 or later (scripts are both compatible with python™ 2.7.x and python™ 3.x) +- [python™](https://www.python.org/downloads/) 3.7 or later. # Trademark Information diff --git a/tools/benchmark_tool/setup.py b/tools/benchmark_tool/setup.py index 30c8a33dbf9..9c8cc146a63 100644 --- a/tools/benchmark_tool/setup.py +++ b/tools/benchmark_tool/setup.py @@ -41,5 +41,5 @@ setup( ], packages=find_packages(), install_requires=reqs, - python_requires='>=3.6', + python_requires='>=3.7', ) diff --git a/tools/cross_check_tool/setup.py b/tools/cross_check_tool/setup.py index 1563c98b1c9..b5d102653c6 100644 --- a/tools/cross_check_tool/setup.py +++ b/tools/cross_check_tool/setup.py @@ -36,5 +36,5 @@ setup( ], packages=find_packages(), install_requires=read_text('requirements.txt'), - python_requires='>=3.6', + python_requires='>=3.7', ) diff --git a/tools/deployment_manager/configs/darwin.json b/tools/deployment_manager/configs/darwin.json index 72f8468fa0b..89b19b6556c 100644 --- a/tools/deployment_manager/configs/darwin.json +++ b/tools/deployment_manager/configs/darwin.json @@ -48,14 +48,6 @@ "runtime/lib/intel64/Release/pcie-ma2x8x.mvcmd" ] }, - "python3.6": { - "ui_name": "OpenVINO Python API for Python3.6", - "group": ["python"], - "dependencies" : ["ie_core"], - "files": [ - "python/python3.6" - ] - }, "python3.7": { "ui_name": "OpenVINO Python API for Python3.7", "group": ["python"], diff --git a/tools/deployment_manager/configs/linux.json b/tools/deployment_manager/configs/linux.json index ca8c8ab5273..22d435e40ca 100644 --- a/tools/deployment_manager/configs/linux.json +++ b/tools/deployment_manager/configs/linux.json @@ -87,14 +87,6 @@ "runtime/3rdparty/hddl" ] }, - "python3.6": { - "ui_name": "OpenVINO Python API for Python3.6", - "group": ["python"], - "dependencies" : ["ie_core"], - "files": [ - "python/python3.6" - ] - }, "python3.7": { "ui_name": "OpenVINO Python API for Python3.7", "group": ["python"], diff --git a/tools/deployment_manager/configs/windows.json b/tools/deployment_manager/configs/windows.json index 8369fa042cd..70b479e7425 100644 --- a/tools/deployment_manager/configs/windows.json +++ b/tools/deployment_manager/configs/windows.json @@ -75,14 +75,6 @@ "runtime/3rdparty/hddl" ] }, - "python3.6": { - "ui_name": "OpenVINO Python API for Python3.6", - "group": ["python"], - "dependencies" : ["ie_core"], - "files": [ - "python/python3.6" - ] - }, "python3.7": { "ui_name": "OpenVINO Python API for Python3.7", "group": ["python"], diff --git a/tools/deployment_manager/deployment_manager.py b/tools/deployment_manager/deployment_manager.py index 9d5c2189ecd..9cf07b3286b 100755 --- a/tools/deployment_manager/deployment_manager.py +++ b/tools/deployment_manager/deployment_manager.py @@ -17,8 +17,8 @@ import sys -if sys.version_info[0] < 3 or (sys.version_info[0] == 3 and sys.version_info[1] < 6): - exit("Python* 3.6 or higher is required to run the Deployment Manager.") +if sys.version_info[0] < 3 or (sys.version_info[0] == 3 and sys.version_info[1] < 7): + exit("Python* 3.7 or higher is required to run the Deployment Manager.") if __name__ == '__main__': from deployman.main import main diff --git a/tools/mo/install_prerequisites/install_prerequisites.bat b/tools/mo/install_prerequisites/install_prerequisites.bat index d76da9c3220..e43b9d10ee6 100644 --- a/tools/mo/install_prerequisites/install_prerequisites.bat +++ b/tools/mo/install_prerequisites/install_prerequisites.bat @@ -10,11 +10,11 @@ set ROOT_DIR=%~dp0 python --version 2>NUL if errorlevel 1 ( - echo Error^: Python is not installed. Please install Python 3.5 ^(64-bit^) or higher from https://www.python.org/downloads/ + echo Error^: Python is not installed. Please install Python 3.7 ^(64-bit^) or higher from https://www.python.org/downloads/ goto error ) -:: Check if Python version is equal or higher 3.4 +:: Check if Python version is equal or higher 3.7 for /F "tokens=* USEBACKQ" %%F IN (`python --version 2^>^&1`) DO ( set version=%%F ) @@ -26,12 +26,12 @@ for /F "tokens=1,2,3 delims=. " %%a in ("%version%") do ( ) if "%Major%" geq "3" ( - if "%Minor%" geq "5" ( + if "%Minor%" geq "7" ( set python_ver=okay ) ) if not "%python_ver%"=="okay" ( - echo Unsupported Python version. Please install Python 3.5 ^(64-bit^) or higher from https://www.python.org/downloads/ + echo Unsupported Python version. Please install Python 3.7 ^(64-bit^) or higher from https://www.python.org/downloads/ goto error ) diff --git a/tools/mo/install_prerequisites/install_prerequisites.sh b/tools/mo/install_prerequisites/install_prerequisites.sh index f8c7d646bfe..38827cd01ed 100755 --- a/tools/mo/install_prerequisites/install_prerequisites.sh +++ b/tools/mo/install_prerequisites/install_prerequisites.sh @@ -49,8 +49,6 @@ if [[ $DISTRO == "centos" ]]; then python_binary=python3.8 elif command -v python3.7 >/dev/null 2>&1; then python_binary=python3.7 - elif command -v python3.6 >/dev/null 2>&1; then - python_binary=python3.6 fi else python_binary=python3 diff --git a/tools/pot/openvino/tools/pot/algorithms/quantization/optimization/algorithm.py b/tools/pot/openvino/tools/pot/algorithms/quantization/optimization/algorithm.py index fdd82057312..2ceed76b035 100644 --- a/tools/pot/openvino/tools/pot/algorithms/quantization/optimization/algorithm.py +++ b/tools/pot/openvino/tools/pot/algorithms/quantization/optimization/algorithm.py @@ -30,7 +30,7 @@ except ImportError: 'Nevergrad package could not be imported. If you are planning to use ' 'any hyperparameter optimization algo, consider installing it ' 'using pip. This implies advanced usage of the tool. ' - 'Note that nevergrad is compatible only with Python 3.6+' + 'Note that nevergrad is compatible only with Python 3.7+' ) try: diff --git a/tools/pot/setup.py b/tools/pot/setup.py index d05cde2f83e..06237220b30 100644 --- a/tools/pot/setup.py +++ b/tools/pot/setup.py @@ -69,8 +69,7 @@ INSTALL_REQUIRES = [ "jstyleson>=0.0.2", "numpy>=1.16.6,<=1.23.1", "addict>=2.4.0", - "networkx~=2.5;python_version<='3.6'", - "networkx<2.8.1;python_version>'3.6'", + "networkx<2.8.1", "tqdm>=4.54.1", "texttable>=1.6.3", "pandas~=1.1.5", @@ -85,10 +84,10 @@ DEPENDENCY_LINKS = [] python_version = sys.version_info[:2] if python_version[0] < 3: - print('Only Python >= 3.6 is supported by POT/OV') + print('Only Python >= 3.7 is supported by POT/OV') sys.exit(0) -elif python_version[1] < 6: - print('Only Python >= 3.6 is supported by POT/OV') +elif python_version[1] < 7: + print('Only Python >= 3.7 is supported by POT/OV') sys.exit(0) diff --git a/tools/pot/tests/utils/command.py b/tools/pot/tests/utils/command.py index 8270e84813f..ea2a330d87a 100644 --- a/tools/pot/tests/utils/command.py +++ b/tools/pot/tests/utils/command.py @@ -22,9 +22,9 @@ class Command: # set system/version dependent 'start_new_session' analogs if sys.platform == 'win32': self.kwargs.update(creationflags=subprocess.CREATE_NEW_PROCESS_GROUP) - elif sys.version_info < (3, 2): # assume posix + elif sys.version_info < (3, 7): # assume posix self.kwargs.update(preexec_fn=os.setsid) - else: # Python 3.2+ and Unix + else: # Python 3.7+ and Unix self.kwargs.update(start_new_session=True) def kill_process_tree(self, pid):