stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

--xformers flag doesn't install anything

Open gleblebedev opened this issue 3 years ago • 2 comments

Python 3.8.10 (tags/v3.8.10:3d8993a, May 3 2021, 11:48:03) [MSC v.1928 64 bit (AMD64)] Commit hash: be1596ce30b1ead6998da0c62003003dcce5eb2c Installing requirements for Web UI Launching Web UI with arguments: --listen --xformers Cannot import xformers Traceback (most recent call last): File "I:\SD\stable-diffusion-webui\modules\sd_hijack_optimizations.py", line 18, in import xformers.ops ModuleNotFoundError: No module named 'xformers'

To Reproduce Steps to reproduce the behavior:

  • Add --xformers to the set COMMANDLINE_ARGS
  • run webui-user.bat

Expected behavior The wiki documentation says it should install the module.

Desktop (please complete the following information):

  • OS: Windows
  • Commit revision be1596ce30b1ead6998da0c62003003dcce5eb2c

gleblebedev avatar Oct 15 '22 21:10 gleblebedev

xformers will only install on python 3.10, you are using 3.8. Remove 3.8 and install 3.10

Meatfucker avatar Oct 16 '22 03:10 Meatfucker

Is it possible to add it to the error message then so users would know what to do?

gleblebedev avatar Oct 16 '22 09:10 gleblebedev