No module named 'triton' on Windows (triton-windows missing)
A program component needs Triton, which must be installed on Windows as a separate package called triton-windows.
The message
ModuleNotFoundError: No module named 'triton'
Why is this happening?
Triton is needed by torch.compile and by accelerators like SageAttention. The normal triton package is only available for Linux; on Windows, there is the triton-windows fork. The version has to match your PyTorch version. If the message appears when starting ComfyUI only in the line “Found comfy_kitchen backend triton”, that is harmless: this Triton path is disabled by default anyway.
How to fix it
- If the message appears only in the startup line
Found comfy_kitchen backend triton: … No module named 'triton'and everything works, you do not need to do anything. - Check the graphics card: triton-windows runs on Nvidia RTX 30, 40, and 50; GTX 16xx/RTX 20xx only with Triton 3.2 (
"triton-windows<3.3"), GTX 10xx not at all. Install the latest driver. - Find out your PyTorch version. Portable: open a terminal in the
ComfyUI_windows_portablefolder and run.\python_embeded\python.exe -c "import torch; print(torch.__version__)". According to the table, PyTorch 2.10/2.11 use Triton 3.6, 2.12/2.13 use 3.7, and 2.14 uses 3.8. - Remove an old
triton:.\python_embeded\python.exe -m pip uninstall triton. Then install for PyTorch 2.14.\python_embeded\python.exe -m pip install -U "triton-windows<3.9"(for 2.12/2.13<3.8, for 2.10/2.11<3.7). If you are using a venv (manual installation), activate the venv and run the same commands withpipinstead of.\python_embeded\python.exe -m pip. - Portable only: Copy the
includeandlibsfolders (notLib) into thepython_embededfolder. For ComfyUI Portable from 0.3.50 with Python 3.13, they are available aspython_3.13.2_include_libs.zipin the triton-windows releases. - Install the Visual C++ Redistributable: https://aka.ms/vs/17/release/vc_redist.x64.exe
- Test Triton with the script
test_triton.pyfrom the triton-windows guide. Iftensor([0., 0., 0.], device='cuda:0')appears, it works.
Better not: On Windows, do not install the package triton without “-windows”, and when copying include and libs, do not change the existing Lib folder.
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
- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.x – a package does not match the installed NumPy version
- module 'torch' has no attribute 'float8_e4m3fn' (PyTorch too old for fp8)
- No matching distribution found for torch (wrong Python version)
- ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied – pip cannot modify a file
- ImportError: DLL load failed while importing …: The specified module could not be found – a Python package is missing a Windows DLL
Sources
- https://github.com/triton-lang/triton-windows
- https://github.com/Comfy-Org/ComfyUI/blob/master/comfy/cli_args.py
- https://github.com/Comfy-Org/ComfyUI/issues/16686
Checked on Oct 27, 2026. Didn't help? Ask in the forum and name the graphics card, program, and the full message.