AUTOMATIC1111 / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
137.32k stars 26.14k forks source link

[Bug]: Stable DIffusion not installing #14897

Open TheRealGoofet opened 5 months ago

TheRealGoofet commented 5 months ago

Checklist

What happened?

image I was trying to install Stable Diffusion and got this error

Steps to reproduce the problem

.

What should have happened?

It shouldve installed SD

What browsers do you use to access the UI ?

Other

Sysinfo

I cant go to webUI

Console logs

venv "C:\stable-diffusion\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.7.0
Commit hash: cf2772fab0af5573da775e7437e6acdca424f26e
Installing torch and torchvision
C:\stable-diffusion\stable-diffusion-webui\venv\Scripts\python.exe: No module named pip
Traceback (most recent call last):
  File "C:\stable-diffusion\stable-diffusion-webui\launch.py", line 48, in <module>
    main()
  File "C:\stable-diffusion\stable-diffusion-webui\launch.py", line 39, in main
    prepare_environment()
  File "C:\stable-diffusion\stable-diffusion-webui\modules\launch_utils.py", line 378, in prepare_environment
    run(f'"{python}" -m {torch_command}', "Installing torch and torchvision", "Couldn't install torch", live=True)
  File "C:\stable-diffusion\stable-diffusion-webui\modules\launch_utils.py", line 116, in run
    raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't install torch.
Command: "C:\stable-diffusion\stable-diffusion-webui\venv\Scripts\python.exe" -m pip install torch==2.0.1 torchvision==0.15.2 --extra-index-url https://download.pytorch.org/whl/cu118
Error code: 1
Press any key to continue . . .

Additional information

No response

missionfloyd commented 5 months ago

Try python -m ensurepip

Or try installing python form the windows store instead. https://apps.microsoft.com/detail/9PJPW5LDXLZ5

Or this. It includes python and git. https://github.com/AUTOMATIC1111/stable-diffusion-webui/releases/tag/v1.0.0-pre Download sd.webui.zip, extract it, then run update.bat, then run.bat.

QXR9 commented 5 months ago

Exactly ONE TO ONE same happened in KDE Neon. I ran the webui.sh and ended up like this. WTH? Even not same kernel we use. Can someone suggest any solution?

stagnantb@kuzgun13:~/StableDiffusion/stable-diffusion-webui$ python -m ensurepip
Command 'python' not found, did you mean:
   command 'python3' from deb python3
   command 'python' from deb python-is-python3
stagnantb@kuzgun13:~/StableDiffusion/stable-diffusion-webui$ sudo apt install python
[sudo] password for stagnantb:
Reading packing lists... Done
Creating dependency tree... Done
Reading status information... Done
The python package does not exist, but is pointed to within another package.
This means that this package may have been lost, abandoned because it was worn out, or was otherwise misplaced.
It may mean that it is present in the software source.
However, the following packages will replace it:
   2to3 python2-minimal:i386 python2:i386 python2-minimal
   python2 dh-python python-is-python3

E: No installation candidates for package 'python'
da3dsoul commented 5 months ago

@QXR9 that is not related. Not sure why thought it was. There's nothing to suggest it. You don't have python installed. sudo apt install python3