There's no option to install torch version 2.1.2
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 "/opt/stable-diffusion-web-ui/launch.py", line 48, in <module>
main()
File "/opt/stable-diffusion-web-ui/launch.py", line 39, in main
prepare_environment()
File "/opt/stable-diffusion-web-ui/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 "/opt/stable-diffusion-web-ui/modules/launch_utils.py", line 115, in run
raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't install torch.
Command: "/opt/stable-diffusion-web-ui/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
Pinned Comments
bhill commented on 2023-11-21 09:06 (UTC)
Make sure to consider your hardware before installing AI programs: They're very resource intense and require capable hardware just to run.
For example: If your intended device has less than 6 GB of VRAM, I would advise against installing this. Everything would download and the UI would boot, but once you try to generate an image, you'll receive an error saying there's not enough VRAM to generate images.