Skip to main content
For Nvidia 50 series (Blackwell) GPUs, please refer to the System Requirements section to ensure your system meets the requirements for ComfyUI.

Clone the repository

git clone git@github.com:comfyanonymous/ComfyUI.git
More info on git clone.
If you have not installed Microsoft Visual C++ Redistributable, please install it here.

Install Dependencies

  1. Install Miniconda. This will help you install the correct versions of Python and other libraries needed by ComfyUI. Create an environment with Conda.
    conda create -n comfyenv
    conda activate comfyenv
    
  2. Install GPU Dependencies
    conda install pytorch torchvision torchaudio pytorch-cuda=12.1 -c pytorch -c nvidia
    
    Alternatively, you can install the nightly version of PyTorch.
    Install Nightly version (might be more risky)
    conda install pytorch torchvision torchaudio pytorch-cuda=12.1 -c pytorch-nightly -c nvidia
    
    pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm6.0
    
    Alternatively, you can install the nightly version of PyTorch.
    Install Nightly version (might be more risky)
    pip3 install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/rocm6.0
    
    conda install pytorch-nightly::pytorch torchvision torchaudio -c pytorch-nightly
    
  3. cd ComfyUI
    pip install -r requirements.txt
    
  4. Start the application
    cd ComfyUI
    python main.py