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

Error / Installation

No module named 'sageattention' (starting with --use-sage-attention fails)

ComfyUI is supposed to start with SageAttention, but the package sageattention is not installed in its Python environment, so startup fails.

The message

To use the `--use-sage-attention` feature, the `sageattention` package must be installed first. / Can't import SageAttention: No module named 'sageattention'

Affects: ComfyUI

Why is this happening?

The startup option --use-sage-attention enables a faster compute path that needs an extra package. If it’s missing, ComfyUI shows the message and exits. On Windows, SageAttention also needs triton-windows, and the package must be installed as a matching wheel for your PyTorch version. Often the option was copied from a guide without installing the package.

How to fix it

  1. Fastest fix: remove --use-sage-attention from the startup line. Portable: open run_nvidia_gpu.bat in an editor. Desktop app: Manage → Startup Args. ComfyUI will then start with the normal compute path.
  2. In current ComfyUI versions, you can use --use-ck-attention (Comfy-Kitchen-Attention) instead. According to the Windows fork of SageAttention, you don’t need a separate SageAttention wheel for that.
  3. If you still want SageAttention: first install triton-windows (see the entry “No module named 'triton' on Windows”).
  4. On the release page of woct0rdho/SageAttention, download the wheel that matches your PyTorch version (for example, torch2.10.0andhigher in the filename). The Python version doesn’t matter with cp310-abi3; the main CUDA version (12 or 13) must match.
  5. Install it with the Python that ComfyUI shows in the error message. Portable: run .\python_embeded\python.exe -m pip install <path-to-file>.whl in the ComfyUI_windows_portable folder. With a venv (for example, Stability Matrix), use the python.exe in the venv\Scripts folder.
  6. Test it first with test_sageattn.py from the repository. If Wan or Qwen-Image then produce black or noisy images, use the PatchSageAttentionKJ node from KJNodes with sageattn_qk_int8_pv_fp16_cuda.

Better not: Don’t install SageAttention with a simple pip install in just any window — otherwise it ends up in the wrong Python and ComfyUI won’t find it.

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.