The message
ERROR: Could not find a version that satisfies the requirement torch (from versions: none) ERROR: No matching distribution found for torch
Affects: Python, ComfyUI, AUTOMATIC1111 Stable Diffusion WebUI, Stable Diffusion WebUI Forge, TextGen (text-generation-webui), InvokeAI, Fooocus
Why is this happening?
PyTorch is only available for certain Python versions, and on Windows only as a 64-bit package. The current version 2.14 has packages for Python 3.10 through 3.14. If you use a brand-new Python version, one that’s too old (3.9 or older), or a 32-bit Python, pip won’t find anything. An outdated program that requires an old fixed torch version can also trigger the error.
How to fix it
- Check your version with
python --versionand whether it’s 64-bit:python -c "import struct; print(struct.calcsize('P')*8)"must output 64. - Check your program’s installation guide to see which Python version is recommended. For example, ComfyUI recommends Python 3.13 (and 3.12 if you have problems with custom nodes).
- Install the right version with the Python install manager, for example
py install 3.13. - Delete the old venv in the program folder and recreate it with the correct version:
py -V:3.13 -m venv venv. Activate it and reinstall the dependencies. - For PyTorch, use the installation command from the program’s guide or from pytorch.org (with the matching
--index-urlfor NVIDIA, AMD, or Intel).
Better not: Don’t install some random “torch”-like package with a different name just because pip finds it.
Set up from scratch again
If it still doesn’t work after that, a fresh setup step by step often helps:
- Set up and maintain ComfyUI on Windows
Desktop or Portable, where the models belong, sharing models with other programs, safely installing custom nodes, updates, startup options … - Your First Image with ComfyUI
Install Comfy Desktop, learn the interface, and create your first AI image with FLUX.2 [small] 4B or Z-Image Turbo. - Your First AI Video with LTX in ComfyUI
Use LTX-2.3 in ComfyUI to create short videos with sound from text or an image. Template, files, settings, and license.
Terms for this
Similar errors
- 'python' is not recognized or opens the Microsoft Store
- venv activation blocked: running scripts is disabled on this system
- ImportError: DLL load failed while importing …: The specified module could not be found – a Python package is missing a Windows DLL
- pip: Microsoft Visual C++ 14.0 or greater is required
- ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied – pip cannot modify a file
Sources
- https://pypi.org/project/torch/
- https://github.com/comfyanonymous/ComfyUI/blob/master/README.md
- https://docs.python.org/3/using/windows.html
Checked on Oct 21, 2026. Didn't help? Ask in the forum and name the graphics card, program, and the full message.