From 3e3753507d7a2ef4c205bd7fa8e93562021b3641 Mon Sep 17 00:00:00 2001 From: Tsuyoshi CHO Date: Sat, 23 Dec 2023 21:01:52 +0900 Subject: [PATCH] fix: Use simple check for pip install (win) --- installer/pip_install.cmd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/installer/pip_install.cmd b/installer/pip_install.cmd index 39537be2..80a12b89 100644 --- a/installer/pip_install.cmd +++ b/installer/pip_install.cmd @@ -17,7 +17,8 @@ goto :EOF :python rem python is 2 or 3 check(python3 version at python3 grammar) -call python -c "import sys; from distutils.version import LooseVersion;sys.exit(0 if (LooseVersion(sys.version) > LooseVersion('3')) else 1)" 2>NUL +rem Do a quick check as distutils has been removed in Python 3.12 +call python -c "import sys; sys.exit(0 if (sys.version_info[0] >= 3) else 1)" 2>NUL if errorlevel 1 goto :python_fail set PYTHON=python goto :create_venv