mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-03-06 22:02:18 -08:00
Fix the issue of pip install 'setuptools<70' failing in cmd; cmd doesn't support single quotes.
This commit is contained in:
parent
76759a1853
commit
fd0f475aaf
1 changed files with 2 additions and 2 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue