mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-03-14 01:20:12 +00:00
Fix the issue of pip install 'setuptools<70' failing in cmd; cmd doesn't support single quotes.
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user