From fd0f475aaf83ac6df1d9c1b138e2bfe6e22f13ed Mon Sep 17 00:00:00 2001 From: home-MSI <130823924+WhizZest@users.noreply.github.com> Date: Mon, 2 Mar 2026 13:46:16 +0800 Subject: [PATCH] Fix the issue of `pip install 'setuptools<70'` failing in cmd; cmd doesn't support single quotes. --- modules/launch_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/launch_utils.py b/modules/launch_utils.py index e1afeb3ec..804b80205 100644 --- a/modules/launch_utils.py +++ b/modules/launch_utils.py @@ -431,10 +431,10 @@ def prepare_environment(): try: setuptools_version = run(f'"{python}" -c "import setuptools; print(setuptools.__version__)"', None, None).strip() if setuptools_version >= "70": - run_pip("install 'setuptools<70'", "setuptools") + run_pip("install setuptools==69.5.1", "setuptools") except Exception: # If setuptools check fails, install compatible version - run_pip("install 'setuptools<70'", "setuptools") + run_pip("install setuptools==69.5.1", "setuptools") # Install build dependencies early ensure_build_dependencies()