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

[Bug]:

Open hiteshbhole opened this issue 2 years ago • 1 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues and checked the recent builds/commits

What happened?

WHEN I try to execute webui-user.bat this shows up

venv "D:\AI\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)] Commit hash: a9fed7c364061ae6efb37f797b6b522cb3cf7aa2 Installing torch and torchvision D:\AI\stable-diffusion-webui\venv\Scripts\python.exe: No module named pip Traceback (most recent call last): File "D:\AI\stable-diffusion-webui\launch.py", line 380, in prepare_environment() File "D:\AI\stable-diffusion-webui\launch.py", line 284, in prepare_environment run(f'"{python}" -m {torch_command}', "Installing torch and torchvision", "Couldn't install torch", live=True) File "D:\AI\stable-diffusion-webui\launch.py", line 97, in run raise RuntimeError(f"""{errdesc or 'Error running command'}. RuntimeError: Couldn't install torch. Command: "D:\AI\stable-diffusion-webui\venv\Scripts\python.exe" -m pip install torch==1.13.1+cu117 torchvision==0.14.1+cu117 --extra-index-url https://download.pytorch.org/whl/cu117 Error code: 1 Press any key to continue . . .

I TRIED INSTALLING DIFFERENT PYTHON VERSIONS BUT NOT WORKING .. PLEASE HELP

Steps to reproduce the problem

WHEN I try to execute webui-user.bat this shows up

What should have happened?

IT SHOULD HAVE STATED INSTALLING STABLE DIFFUSION

Commit where the problem happens

venv "D:\AI\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)] Commit hash: a9fed7c364061ae6efb37f797b6b522cb3cf7aa2 Installing torch and torchvision D:\AI\stable-diffusion-webui\venv\Scripts\python.exe: No module named pip Traceback (most recent call last): File "D:\AI\stable-diffusion-webui\launch.py", line 380, in prepare_environment() File "D:\AI\stable-diffusion-webui\launch.py", line 284, in prepare_environment run(f'"{python}" -m {torch_command}', "Installing torch and torchvision", "Couldn't install torch", live=True) File "D:\AI\stable-diffusion-webui\launch.py", line 97, in run raise RuntimeError(f"""{errdesc or 'Error running command'}. RuntimeError: Couldn't install torch. Command: "D:\AI\stable-diffusion-webui\venv\Scripts\python.exe" -m pip install torch==1.13.1+cu117 torchvision==0.14.1+cu117 --extra-index-url https://download.pytorch.org/whl/cu117 Error code: 1 Press any key to continue . . .

What platforms do you use to access the UI ?

No response

What browsers do you use to access the UI ?

No response

Command Line Arguments

webui-user.bat

List of extensions

no

Console logs

.

Additional information

No response

hiteshbhole avatar Mar 20 '23 21:03 hiteshbhole

D:\AI\stable-diffusion-webui\venv\Scripts\python.exe: No module named pip

this is the important line, somehow your python venv does not have pip installed, try manually installing it, or delete the venv and recreate it from scratch

Gazzoo-byte avatar Mar 21 '23 23:03 Gazzoo-byte

Python 3.9.2 (default, Feb 28 2021, 17:03:44) [GCC 10.2.1 20210110] Commit hash: 22bcc7be428c94e9408f589966c2040187245d81 Installing torch and torchvision Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu117 Collecting torch==1.13.1+cu117 Downloading https://download.pytorch.org/whl/cu117/torch-1.13.1%2Bcu117-cp39-cp39-linux_x86_64.whl (1801.8 MB) |████████████████████████████████| 1801.8 MB 5.8 MB/s eta 0:00:01Killed Traceback (most recent call last): File "/home/tommy/stable-diffusion-webui/launch.py", line 355, in prepare_environment() File "/home/tommy/stable-diffusion-webui/launch.py", line 257, in prepare_environment run(f'"{python}" -m {torch_command}', "Installing torch and torchvision", "Couldn't install torch", live=True) File "/home/tommy/stable-diffusion-webui/launch.py", line 81, in run raise RuntimeError(f"""{errdesc or 'Error running command'}. RuntimeError: Couldn't install torch. Command: "/home/tommy/stable-diffusion-webui/venv/bin/python3" -m pip install torch==1.13.1+cu117 torchvision==0.14.1+cu117 --extra-index-url https://download.pytorch.org/whl/cu117 Error code: 137

Try it to install on chromebook / linux Can anybody help me ?

Tommy-GER-nrw avatar Apr 23 '23 22:04 Tommy-GER-nrw

A chromebook likely won't have the GPU power to run this, it's recommended to have an NVidia GPU with >4GB of VRAM, AMD GPUs can also run it via Linux, but it's a bit more complicated. If your chromebook does have an NVidia GPU with >4GB of VRAM, you would also need a newer version of Python. See https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Dependencies

Gazzoo-byte avatar Apr 23 '23 22:04 Gazzoo-byte

Closing as stale.

catboxanon avatar Aug 11 '23 16:08 catboxanon