Free | No tracking | Every fact with a source|German and English

Error / Installation

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'

Affects: ComfyUI, Python

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

  1. 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.
  2. 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.
  3. Find out your PyTorch version. Portable: open a terminal in the ComfyUI_windows_portable folder 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.
  4. 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 with pip instead of .\python_embeded\python.exe -m pip.
  5. Portable only: Copy the include and libs folders (not Lib) into the python_embeded folder. For ComfyUI Portable from 0.3.50 with Python 3.13, they are available as python_3.13.2_include_libs.zip in the triton-windows releases.
  6. Install the Visual C++ Redistributable: https://aka.ms/vs/17/release/vc_redist.x64.exe
  7. Test Triton with the script test_triton.py from the triton-windows guide. If tensor([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:

Terms for this

Similar errors

Sources

Checked on Oct 27, 2026. Didn't help? Ask in the forum and name the graphics card, program, and the full message.