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]: couldn't install torch .whl on python 3.11 #5841

Closed
1 task done
SENORFARMER opened this issue Dec 18, 2022 · 2 comments
Closed
1 task done

[Bug]: couldn't install torch .whl on python 3.11 #5841

SENORFARMER opened this issue Dec 18, 2022 · 2 comments
Labels
bug-report Report of a bug, yet to be confirmed

Comments

@SENORFARMER
Copy link

Is there an existing issue for this?

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

What happened?

I am following a guide on installing and running it, but it looks like it is having issues installing torch. I have tried to install multiple versions manually and automatically and it hasn't been resolved.

Steps to reproduce the problem

C:\Users\SENOR(Admin)\stable-diffusion-webui>git pull
Already up to date.
venv "C:\Users\SENOR(Admin)\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.11.1 (tags/v3.11.1:a7a450f, Dec 6 2022, 19:58:39) [MSC v.1934 64 bit (AMD64)]
Commit hash: 685f963
Installing torch and torchvision
Traceback (most recent call last):
File "C:\Users\SENOR(Admin)\stable-diffusion-webui\launch.py", line 294, in
prepare_environment()
File "C:\Users\SENOR(Admin)\stable-diffusion-webui\launch.py", line 206, in prepare_environment
run(f'"{python}" -m {torch_command}', "Installing torch and torchvision", "Couldn't install torch")
File "C:\Users\SENOR(Admin)\stable-diffusion-webui\launch.py", line 49, in run
raise RuntimeError(message)
RuntimeError: Couldn't install torch.
Command: "C:\Users\SENOR(Admin)\stable-diffusion-webui\venv\Scripts\python.exe" -m pip install torch==1.12.1+cu113 torchvision==0.13.1+cu113 --extra-index-url https://download.pytorch.org/whl/cu113
Error code: 1
stdout:
stderr: C:\Users\SENOR(Admin)\stable-diffusion-webui\venv\Scripts\python.exe: No module named pip

Press any key to continue . . .

What should have happened?

It should have downloaded all of the dependencies and then I'd be good.

Commit where the problem happens

Merge pull request #5586

What platforms do you use to access UI ?

Windows

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

No response

Additional information, context and logs

No response

@SENORFARMER SENORFARMER added the bug-report Report of a bug, yet to be confirmed label Dec 18, 2022
@ClashSAN
Copy link
Collaborator

ClashSAN commented Dec 18, 2022

reason: no torch of that version exists for 3.11 only 3.10
install python 3.10.6, do not install python from microsoft store. install from where the readme says, from the python website: https://github.com/AUTOMATIC1111/stable-diffusion-webui#automatic-installation-on-windows

@ClashSAN ClashSAN changed the title [Bug]: [Bug]: couldn't install torch .whl on python 3.11 Dec 18, 2022
@aliencaocao
Copy link
Contributor

I think should close this @ClashSAN

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