[Bug]: Can't install torch/torchvision, can't find correct version

Author: Karsten385Created Mar 21, 2023Updated Sep 16, 2026
Labelsbug-report

Is there an existing issue for this?

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

What happened?

Can't install torch/torchvision when running webui-user.bat

Steps to reproduce the problem

Run webui-user.bat

What should have happened?

Program should have installed torch/torchvision

Commit where the problem happens

Commit hash: a9fed7c364061ae6efb37f797b6b522cb3cf7aa2

What platforms do you use to access the UI ?

Windows

What browsers do you use to access the UI ?

Mozilla Firefox

Command Line Arguments

No

List of extensions

No

Console logs

venv "C:\Users\Karsten\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:38:17) [MSC v.1932 32 bit (Intel)]
Commit hash: a9fed7c364061ae6efb37f797b6b522cb3cf7aa2
Installing torch and torchvision
Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu117
ERROR: Could not find a version that satisfies the requirement torch==1.13.1+cu117 (from versions: none)
ERROR: No matching distribution found for torch==1.13.1+cu117

[notice] A new release of pip available: 22.2.1 -> 23.0.1
[notice] To update, run: C:\Users\Karsten\stable-diffusion-webui\venv\Scripts\python.exe -m pip install --upgrade pip
Traceback (most recent call last):
  File "C:\Users\Karsten\stable-diffusion-webui\launch.py", line 380, in <module>
    prepare_environment()
  File "C:\Users\Karsten\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 "C:\Users\Karsten\stable-diffusion-webui\launch.py", line 97, in run
    raise RuntimeError(f"""{errdesc or 'Error running command'}.
RuntimeError: Couldn't install torch.
Command: "C:\Users\Karsten\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 . . .

Additional information

Running windows 10, Nvidia 1050ti graphics card if that is necessary.

Source: AUTOMATIC1111/stable-diffusion-webui