Loading...
Loading...
ModuleNotFoundError: No module named 'comfy'This error occurs when a script or custom node tries to import from the core `comfy` package, but Python cannot find it. This almost always happens because a script or a `git clone` command was executed from the wrong directory, or a custom node is placed incorrectly. The `comfy` module is not a pip package; it is the core folder of ComfyUI itself.
Custom nodes MUST be cloned into the `ComfyUI/custom_nodes` directory, never the root folder. If you cloned it into the root, delete it and clone again correctly.
cd ComfyUI/custom_nodes
git clone https://github.com/Username/NodeNameIf a custom node has an `install.py` that fails with this error, it usually means ComfyUI Manager is supposed to run it during startup, or you need to run it specifying the python executable inside the ComfyUI virtual environment.
# For standalone ComfyUI / Portable version:
cd ComfyUI_windows_portable
python_embeded\python.exe -m pip install -r ComfyUI\custom_nodes\NodeName\requirements.txtIf you get this error from ComfyUI-Manager itself (e.g., comfyui_manager.common.git_helper), your ComfyUI Manager is likely outdated or broken. Update it manually.
cd ComfyUI/custom_nodes/ComfyUI-Manager
git pull