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]: Whatever I do its trying to use a 3.12.x version that's not even on my PC #16451

Open
4 of 6 tasks
rust-floppy opened this issue Sep 1, 2024 · 2 comments
Open
4 of 6 tasks
Labels
bug-report Report of a bug, yet to be confirmed

Comments

@rust-floppy
Copy link

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?

I'm trying to install this for the first time, I haven't had Python at all on my PC for months now.
I install python 3.10.6, its the only version existing on my pc:
image

path:
image

windows' control panel uninstall thingy (to show u I literally only have 3.10.6 installed)
image

but when I try to install this, based on the documentation: https://github.com/AUTOMATIC1111/stable-diffusion-webui?tab=readme-ov-file#automatic-installation-on-windows

then this is what error I get (mentioning that I have 3.12.4 BUT I DONT HAVE ANY VERSION OTHER THAN 3.10.6 :DDDDDDDDDDDDDDDDDDDDDDD)
image

So what the hell can I do with this?

I've tried:

  • uninstalling every single thing related to python
  • restart pc
  • install 3.10.6 version of python
  • deleted venv folder and deleted python again
  • installed 3.10.6 again
  • did a "repair" with the python installer on 3.10.6

and it still has a stroke. Am I missing something?

Steps to reproduce the problem

above

What should have happened?

above

What browsers do you use to access the UI ?

No response

Sysinfo

above

Console logs

X:\1111\stable-diffusion-webui>webui-user.bat
'"X:\1111\stable-diffusion-webui\venv\Scripts\activate.bat"' is not recognized as an internal or external command,
operable program or batch file.
venv "X:\1111\stable-diffusion-webui\venv\Scripts\Python.exe"
=============================================================================================================================
INCOMPATIBLE PYTHON VERSION

This program is tested with 3.10.6 Python, but you have 3.12.4.
If you encounter an error with "RuntimeError: Couldn't install torch." message,
or any other error regarding unsuccessful package (library) installation,
please downgrade (or upgrade) to the latest version of 3.10 Python
and delete current Python and "venv" folder in WebUI's directory.

You can download 3.10 Python from here: https://www.python.org/downloads/release/python-3106/

Alternatively, use a binary release of WebUI: https://github.com/AUTOMATIC1111/stable-diffusion-webui/releases/tag/v1.0.0-pre

Use --skip-python-version-check to suppress this warning.
=============================================================================================================================
Python 3.12.4 | packaged by Anaconda, Inc. | (main, Jun 18 2024, 15:03:56) [MSC v.1929 64 bit (AMD64)]
Version: v1.10.1
Commit hash: 82a973c04367123ae98bd9abdf80d9eda9b910e2
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, 2.3.1, 2.3.1+cu121, 2.4.0, 2.4.0+cu121)
ERROR: No matching distribution found for torch==2.1.2
Traceback (most recent call last):
  File "X:\1111\stable-diffusion-webui\launch.py", line 48, in <module>
    main()
  File "X:\1111\stable-diffusion-webui\launch.py", line 39, in main
    prepare_environment()
  File "X:\1111\stable-diffusion-webui\modules\launch_utils.py", line 381, in prepare_environment
    run(f'"{python}" -m {torch_command}', "Installing torch and torchvision", "Couldn't install torch", live=True)
  File "X:\1111\stable-diffusion-webui\modules\launch_utils.py", line 116, in run
    raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't install torch.
Command: "X:\1111\stable-diffusion-webui\venv\Scripts\python.exe" -m pip install torch==2.1.2 torchvision==0.16.2 --extra-index-url https://download.pytorch.org/whl/cu121
Error code: 1
Press any key to continue . . .

Additional information

No response

@rust-floppy rust-floppy added the bug-report Report of a bug, yet to be confirmed label Sep 1, 2024
@missionfloyd
Copy link
Collaborator

Python 3.12.4 | packaged by Anaconda, Inc.

Uninstall Conda/Anaconda if it's installed.

Otherwise, you can try setting the python version to use (or explicitly set the full path to the correct python) in webui-user.bat.

set PYTHON=python3.10.exe

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

@austenstone
Copy link

delete the repo and re-clone it. There's a python venv you're reusing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-report Report of a bug, yet to be confirmed
Projects
None yet
Development

No branches or pull requests

3 participants