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

[Bug]: No module 'xformers'; and it always fails to download, the problems of pip? (on Mac Silicon)

Open AuroraMackenzie opened this issue 8 months ago • 1 comments

Checklist

  • [ ] The issue exists after disabling all extensions
  • [ ] The issue exists on a clean installation of webui
  • [ ] The issue is caused by an extension, but I believe it is caused by a bug in the webui
  • [ ] The issue exists in the current version of the webui
  • [x] The issue has not been reported before recently
  • [x] The issue has been reported before but has not been fixed yet

What happened?

I have not downloaded the requirement "xformers" It always failed, showing that: "note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for xformers Running setup.py clean for xformers Failed to build xformers ERROR: Failed to build installable wheels for some pyproject.toml based projects (xformers)"

There are some errors:

Image

Image

Image

Image

Image

Steps to reproduce the problem

cd '/Users/ycy/Desktop/ . . . /stable-diffusion-webui'

echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zshrc source ~/.zshrc

arch -arm64 brew install cmake protobuf rust [email protected] git wget

chmod +x webui.sh ./webui.sh

Then it shows the error that there is no requirement "xformers" though the webui can be opened

I have tried to install it by the code "pip install xformers", but it did not work.

What should have happened?

I think it would be completely succeeded. The "xformers" would be fine.

What browsers do you use to access the UI ?

No response

Sysinfo

Edge

Console logs

I have submit my error information on "other information", showing a document, named "journal.txt"

Additional information

journal.txt

AuroraMackenzie avatar Mar 27 '25 03:03 AuroraMackenzie

xformers does not support apple silicone or macos

Renari avatar Mar 27 '25 07:03 Renari

xformers only available for nvidia gpu(s) with cuda

stevessr avatar Apr 01 '25 11:04 stevessr

This pops up every couple of years there is a way its a little difficult to do and can break stuff so read , reread , read a third time take a break read some more times. I jacked it once had to factory reset my pro, however I did get it to work afterwards

https://github.com/AUTOMATIC1111/stable-diffusion-webui/discussions/8188#discussioncomment-7216546

antv311 avatar Apr 02 '25 04:04 antv311

I see, thanks.

AuroraMackenzie avatar Apr 05 '25 16:04 AuroraMackenzie