diff options
author | discus0434 <discus0434@gmail.com> | 2022-10-20 00:14:16 +0000 |
---|---|---|
committer | discus0434 <discus0434@gmail.com> | 2022-10-20 00:14:16 +0000 |
commit | ecb433b22095ff4e7624db0266e1cadb2d3b4c13 (patch) | |
tree | a501333d6f9e752ca68171bcffc15813b76f401c /launch.py | |
parent | 6f98e89486f55b0e4657e96ce640cf1c4675d187 (diff) | |
parent | 4574eea5898dcd64f354fcf17a5c67b55288b002 (diff) | |
download | stable-diffusion-webui-gfx803-ecb433b22095ff4e7624db0266e1cadb2d3b4c13.tar.gz stable-diffusion-webui-gfx803-ecb433b22095ff4e7624db0266e1cadb2d3b4c13.tar.bz2 stable-diffusion-webui-gfx803-ecb433b22095ff4e7624db0266e1cadb2d3b4c13.zip |
update
Diffstat (limited to 'launch.py')
-rw-r--r-- | launch.py | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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")
|