[BE] Update Python min version to 3.10 (#162310)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/162310
Approved by: https://github.com/atalman, https://github.com/Skylion007, https://github.com/ZainRizvi
This commit is contained in:
Nikita Shulga
2025-09-22 09:59:22 -07:00
committed by PyTorch MergeBot
parent 06fe5b9025
commit 5e7be98800
5 changed files with 16 additions and 13 deletions

View File

@ -256,7 +256,7 @@ import platform
# Also update `project.requires-python` in pyproject.toml when changing this
python_min_version = (3, 9, 0)
python_min_version = (3, 10, 0)
python_min_version_str = ".".join(map(str, python_min_version))
if sys.version_info < python_min_version:
print(