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

Error / Installation

No module named … (missing Python package for custom node)

A custom node needs a Python package that is not installed in ComfyUI’s Python environment.

The message

ModuleNotFoundError: No module named 'xyz'

Affects: ComfyUI

Why is this happening?

Custom nodes include a requirements.txt whose packages are automatically installed during installation via the ComfyUI Manager. If you copied the node by hand (git clone or ZIP), the installation failed, or the packages were installed into a different Python, they are missing. With Portable, it is very common to accidentally use the system Python instead of python_embeded.

How to fix it

  1. Read the console window to see which custom node is causing the error (the path is in the error message, for example custom_nodes\ComfyUI-XYZ).
  2. The easiest way: Open the ComfyUI Manager, find the node, update it or reinstall it, and restart ComfyUI. The Manager installs the requirements.txt automatically.
  3. Portable, by hand: Open a terminal in the ComfyUI_windows_portable folder (right-click in the empty folder area → “Open in Terminal”). Run .\python_embeded\python.exe -m pip install -r ComfyUI\custom_nodes\ComfyUI-XYZ\requirements.txt (adjust the folder names).
  4. Manual installation: activate the venv (comfyui_env\Scripts\activate) and run pip install -r custom_nodes\ComfyUI-XYZ\requirements.txt.
  5. Desktop app: Open Manage → Terminal. The terminal starts in the instance folder; run the pip command there.
  6. After that, check with the torch version command that PyTorch is still the CUDA version (see the entry “CUDA gone after installing a custom node”).

Better not: Do not install packages with a plain pip install in some random window. That ends up in the wrong Python, and ComfyUI won’t see 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 21, 2026. Didn't help? Ask in the forum and name the graphics card, program, and the full message.