Dependencies¶
dependencies
¶
Python dependency management — Steps 7-9.
Installs all Python packages required by ComfyUI:
- Core (Step 7): PyTorch with CUDA index, ComfyUI
requirements.txt. - Standard + Wheels (Step 8): additional packages and
pre-built
.whlfiles (e.g. Nunchaku, InsightFace). - Custom Nodes (Step 9): delegates to :mod:
src.installer.nodesfor Git-clone-based node installation.
All installs use uv — no raw pip.
install_core_dependencies(python_exe, comfy_path, deps, log, *, cuda_tag)
¶
Install PyTorch and ComfyUI requirements.
Performs two sub-steps:
- Install PyTorch packages from the CUDA index URL.
- Install ComfyUI's own
requirements.txt.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
python_exe
|
Path
|
Path to the venv Python executable. |
required |
comfy_path
|
Path
|
ComfyUI repository directory. |
required |
deps
|
DependenciesConfig
|
Parsed |
required |
log
|
InstallerLogger
|
Installer logger for user-facing messages. |
required |
cuda_tag
|
str | None
|
CUDA tag to select PyTorch variant, e.g. |
required |
Source code in src/installer/dependencies.py
install_python_packages(python_exe, deps, log, *, cuda_tag=None)
¶
Install additional standard packages listed in deps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
python_exe
|
Path
|
Path to the venv Python executable. |
required |
deps
|
DependenciesConfig
|
Parsed |
required |
log
|
InstallerLogger
|
Installer logger for user-facing messages. |
required |
cuda_tag
|
str | None
|
GPU configuration tag to conditionally filter packages. |
None
|
Source code in src/installer/dependencies.py
install_wheels(python_exe, install_path, deps, log, *, cuda_tag=None)
¶
Download and install pre-built .whl packages.
Detects the Python version from the venv and picks the matching
wheel for each entry. Each wheel is downloaded to scripts/,
installed via uv, then deleted to save disk space.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
python_exe
|
Path
|
Path to the venv Python executable. |
required |
install_path
|
Path
|
Root installation directory. |
required |
deps
|
DependenciesConfig
|
Parsed |
required |
log
|
InstallerLogger
|
Installer logger for user-facing messages. |
required |
cuda_tag
|
str | None
|
CUDA tag for CUDA-aware wheel selection. |
None
|
Source code in src/installer/dependencies.py
install_custom_nodes(python_exe, comfy_path, install_path, log, *, node_tier='full', source_dir=None)
¶
Install custom nodes from custom_nodes.json (additive-only).
Resolves the manifest from install_path/scripts/ or from the
source scripts directory if not found locally. Delegates the actual
clone + requirements install to :func:nodes.install_all_nodes.
Also provisions nunchaku_versions.json into the Nunchaku node
directory if both files exist.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
python_exe
|
Path
|
Path to the venv Python executable. |
required |
comfy_path
|
Path
|
ComfyUI repository directory. |
required |
install_path
|
Path
|
Root installation directory. |
required |
log
|
InstallerLogger
|
Installer logger for user-facing messages. |
required |
node_tier
|
str
|
Bundle tier — |
'full'
|
source_dir
|
Path | None
|
Pre-resolved source scripts directory. If |
None
|