Understand dependencies in ComfyUI
comfyui-frontend-package
dependency version after the corresponding version stabilizes. If you need to switch to a different frontend version, you can check the version information here.
requirements.txt
file.
If you use ComfyUI Manager to install custom nodes, ComfyUI Manager will usually automatically install the corresponding dependencies.
There are also cases where you need to install dependencies manually. Currently, all custom nodes are installed in the ComfyUI/custom_nodes
directory.
You need to navigate to the corresponding plugin directory in your ComfyUI Python environment and run pip install -r requirements.txt
to install the dependencies.
If you’re using the Windows Portable version, you can use the following command in the ComfyUI_windows_portable
directory:
open_clip_torch==2.26.1
), while other plugins may require a higher version (e.g., open_clip_torch>=2.29.0
), making it impossible to satisfy both version requirements simultaneously.
Solution: You can try changing the fixed version dependency to a range constraint, such as open_clip_torch>=2.26.1
, and then reinstall the dependencies to resolve these issues.
PyTorch
but require different CUDA versions, and the later installed plugin will break the existing environment.
Solutions:
ComfyUI/models/
. Of course, you can also create an extra_model_paths.yaml by modifying the template to make additional model paths recognized by ComfyUI.
This allows multiple ComfyUI instances to share the same model library, reducing disk usage.