Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: SD is not installed. An error occurred during installation. #15769

Open
4 of 6 tasks
LibertyGM opened this issue May 13, 2024 · 5 comments
Open
4 of 6 tasks

[Bug]: SD is not installed. An error occurred during installation. #15769

LibertyGM opened this issue May 13, 2024 · 5 comments
Labels
asking-for-help-with-local-system-issues This issue is asking for help related to local system; please offer assistance

Comments

@LibertyGM
Copy link

LibertyGM commented May 13, 2024

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
  • The issue has not been reported before recently
  • The issue has been reported before but has not been fixed yet

What happened?

SD is not installed.

Steps to reproduce the problem

  1. git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui
  2. run: webui.sh

What should have happened?

I want everything to install and work as before

What browsers do you use to access the UI ?

Google Chrome

Sysinfo

SD is not installed

Console logs

Use --skip-python-version-check to suppress this warning.
=============================================================================================
Python 3.12.3 (main, Apr 23 2024, 09:16:07) [GCC 13.2.1 20240417]
Version: v1.9.3
Commit hash: 1c0a0c4c26f78c32095ebc7f8af82f5c04fca8c0
Installing torch and torchvision
Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu121
ERROR: Could not find a version that satisfies the requirement torch==2.1.2 (from versions: 2.2.0, 2.2.0+cu121, 2.2.1, 2.2.1+cu121, 2.2.2, 2.2.2+cu121, 2.3.0, 2.3.0+cu121)
ERROR: No matching distribution found for torch==2.1.2
Traceback (most recent call last):
  File "/disks/F/stable-diffusion-webui/stable-diffusion-webui/launch.py", line 48, in <module>
    main()
  File "/disks/F/stable-diffusion-webui/stable-diffusion-webui/launch.py", line 39, in main
    prepare_environment()
  File "/disks/F/stable-diffusion-webui/stable-diffusion-webui/modules/launch_utils.py", line 380, in prepare_environment
    run(f'"{python}" -m {torch_command}', "Installing torch and torchvision", "Couldn't install torch", live=True)
  File "/disks/F/stable-diffusion-webui/stable-diffusion-webui/modules/launch_utils.py", line 115, in run
    raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't install torch.
Command: "/disks/F/stable-diffusion-webui/stable-diffusion-webui/venv/bin/python3" -m pip install torch==2.1.2 torchvision==0.16.2 --extra-index-url https://download.pytorch.org/whl/cu121
Error code: 1

Additional information

Operating System: Arch Linux
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.1.0
Qt Version: 6.7.0
Kernel Version: 6.8.9-arch1-2 (64-bit)
Graphics Platform: Wayland
Processors: 32 × Intel® Core™ i9-14900KF
Memory: 62.6 ГиБ of RAM
Graphics Processor: NVIDIA GeForce RTX 4080/PCIe/SSE2
Manufacturer: ASUS

@LibertyGM LibertyGM added the bug-report Report of a bug, yet to be confirmed label May 13, 2024
@w-e-w
Copy link
Collaborator

w-e-w commented May 13, 2024

you are on Python 3.12.3
use 3.10

@w-e-w w-e-w added asking-for-help-with-local-system-issues This issue is asking for help related to local system; please offer assistance and removed bug-report Report of a bug, yet to be confirmed labels May 13, 2024
@LibertyGM
Copy link
Author

you are on Python 3.12.3 use 3.10

I have additionally installed Python 3.10. Can you tell me what to do so that it is used in SD?

@w-e-w
Copy link
Collaborator

w-e-w commented May 13, 2024

@LibertyGM
Copy link
Author

Thank you. While I was waiting for an answer − I found this solution:

webui.sh

I replaced the version in the file and it turned out like this:

python3 executable

if [[ -z "${python_cmd}" ]]
then
python_cmd="python3.10"
fi

@gabriel-systems
Copy link

same windows running windows 11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
asking-for-help-with-local-system-issues This issue is asking for help related to local system; please offer assistance
Projects
None yet
Development

No branches or pull requests

3 participants