Stable Diffusion "Couldn't install torch" Error
Quick answer
The first launch failed to download or install PyTorch. Check the Python version, delete the venv, and rerun, or use Forge's one-click package.
Most likely fix: Clean reinstall
How to fix it
Try these in order — the most common fix is first.
1. Clean reinstall
- Delete the venv folder
- Run webui-user.bat again as a normal user in a folder you own (not Program Files)
Did this fix it?2. Check Python
- Install the Python version the project recommends (3.10.x for A1111)
- Make sure it is on PATH and the webui uses it
Did this fix it?3. Alternative
- Try the WebUI Forge one-click package, reported to work when manual torch installs fail
Did this fix it?
Symptoms
webui-user.bat ends with 'RuntimeError: Couldn't install torch', often after pip errors or 'Access is denied'.
Why it happens
- Unsupported Python version
- Interrupted download or no internet access to the PyTorch index
- Permission errors on files in the venv
- Corrupt partial venv from an earlier failed run
This guide also covers
- couldn't install torch stable diffusion
- runtimeerror couldn't install torch
- webui-user.bat error torch
Still not working?
If Stable Diffusion keeps failing, you're not alone. See every Stable Diffusion problem users report or the alternatives people switch to.
Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.
Talk to usThe same problem in other apps
All not loading, error messages & connection guides →
Midjourney Job Failed or Internal Server Error (Midjourney)
Other Stable Diffusion errors
- Stable Diffusion CUDA Out of Memory Error
- Stable Diffusion "Torch is not able to use GPU" Error
- Stable Diffusion Black Images and NaN Error
- Stable Diffusion Model Failed to Load, Exiting
- Stable Diffusion Very Slow on Mac (M1, M2, M3)
- Stable Diffusion Not Using AMD GPU (Slow, CPU Only)
- Stable Diffusion xformers Error After Update
- Stability AI API 402 Insufficient Credits Error