aboutsummaryrefslogtreecommitdiffstats
path: root/launch.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2022-10-21 06:57:55 +0000
committerGitHub <noreply@github.com>2022-10-21 06:57:55 +0000
commit0c5522ea211370046a2ca628e92d35a7c8c97972 (patch)
tree7c66a3eba0a8a8149900056c6511146182b02276 /launch.py
parent858462f719c22ca9f24b94a41699653c34b5f4fb (diff)
parent2273e752fb3e578f1047f6d38b96330b07bf61a9 (diff)
downloadstable-diffusion-webui-gfx803-0c5522ea211370046a2ca628e92d35a7c8c97972.tar.gz
stable-diffusion-webui-gfx803-0c5522ea211370046a2ca628e92d35a7c8c97972.tar.bz2
stable-diffusion-webui-gfx803-0c5522ea211370046a2ca628e92d35a7c8c97972.zip
Merge branch 'master' into training-help-text
Diffstat (limited to 'launch.py')
-rw-r--r--launch.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/launch.py b/launch.py
index 7b15e78e..333f308a 100644
--- a/launch.py
+++ b/launch.py
@@ -156,9 +156,15 @@ def prepare_enviroment():
if not is_installed("clip"):
run_pip(f"install {clip_package}", "clip")
- if (not is_installed("xformers") or reinstall_xformers) and xformers and platform.python_version().startswith("3.10"):
+ if (not is_installed("xformers") or reinstall_xformers) and xformers:
if platform.system() == "Windows":
- run_pip(f"install -U -I --no-deps {xformers_windows_package}", "xformers")
+ if platform.python_version().startswith("3.10"):
+ run_pip(f"install -U -I --no-deps {xformers_windows_package}", "xformers")
+ else:
+ print("Installation of xformers is not supported in this version of Python.")
+ print("You can also check this and build manually: https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Xformers#building-xformers-on-windows-by-duckness")
+ if not is_installed("xformers"):
+ exit(0)
elif platform.system() == "Linux":
run_pip("install xformers", "xformers")