Skip to content

How-ToGPU

How to Install ComfyUI on Linux for NVIDIA, AMD and Intel GPUs

How to install ComfyUI on Linux: install your GPU driver, clone ComfyUI from the Comfy-Org GitHub repository, create a Python virtual environment, install the PyTorch build for your card (cu130 for NVIDIA, rocm7.2 for AMD Radeon, xpu for Intel Arc), install the requirements and run main.py, then add ComfyUI-Manager and network access.

By , Systems & Technical Editor

6 min read

How to Install ComfyUI on Linux for NVIDIA, AMD and Intel GPUs

The steps below follow ComfyUI's official README, its installation guide on GitHub and its startup flags documentation, all read on 24 November 2026. ComfyUI changes quickly, and the PyTorch versions it asks for move with it, so if a command below differs from the official installation guide when you read this, follow the guide.

ComfyUI is a popular node-based app for running image and video models such as Stable Diffusion and Flux on their own PC. ComfyUI's README calls its desktop app the easiest way to get started on Windows and macOS, and there's a portable build for Windows. On Linux, the route ComfyUI documents in full is the manual install, which it recommends when you want control over your Python and PyTorch versions: clone the code, install PyTorch for your graphics card, install ComfyUI's dependencies and start it with Python. (ComfyUI also offers a command-line installer, comfy-cli, installed with pip install comfy-cli && comfy install, but this guide sticks to the manual method so you can see each step.) It takes a few commands, and once it's done you get the same browser-based interface as everyone else.

If you're on Windows instead, see how to install ComfyUI on Windows, and our ComfyUI Desktop vs ComfyUI Portable comparison explains the two Windows options.

What you need

  • A supported graphics card with working drivers. ComfyUI's installation guide gives PyTorch commands for NVIDIA cards, AMD Radeon cards using ROCm on Linux, and Intel Arc cards. It can also run on the CPU alone, but ComfyUI's own flag documentation describes that mode as slow.

  • The GPU driver and compute stack installed first. For an NVIDIA card, follow how to install NVIDIA drivers on Ubuntu for local AI. For a Radeon card, our guide to installing ROCm on Ubuntu covers checking your card is supported, installing AMD's driver and setting up GPU permissions. ComfyUI's guide notes that AMD users can install ROCm and PyTorch together with pip if they don't already have ROCm, which is what the AMD command in Step 3 does.

  • Python. ComfyUI says Python 3.13 is very well supported, Python 3.14 works but some custom nodes may have problems, and you can try Python 3.12 if a custom node's dependencies give you trouble on 3.13. Check what you have with python3 --version.

  • Git, to download ComfyUI and update it later.

  • Disk space for models. Image and video model files are large, so plan where they'll live before you start. Our guide to how much storage you need for local AI will help.

How much graphics memory you need depends on the models you want to run. Our PC for Stable Diffusion and Flux guide and how much VRAM you need go into that.

Step 1: Download ComfyUI

Open a terminal, move to the folder where you want ComfyUI to live, and clone the official repository:

git clone https://github.com/Comfy-Org/ComfyUI.git
cd ComfyUI

The official repository is under the Comfy-Org organisation on GitHub, and that's the address ComfyUI's README and installation guide give. If an older guide points somewhere else, use the Comfy-Org address above.

Step 2: Create a Python virtual environment

ComfyUI's guide doesn't require a virtual environment, but using one keeps ComfyUI's packages separate from the Python your Linux distribution relies on, and some distributions block system-wide pip install commands anyway. Inside the ComfyUI folder, run:

python3 -m venv venv
source venv/bin/activate

Your prompt should now start with (venv). Run source venv/bin/activate again whenever you open a new terminal to use ComfyUI. On Ubuntu, if the first command fails, install the python3-venv package with your package manager and try again.

Step 3: Install PyTorch for your graphics card

This is the step that decides whether ComfyUI uses your GPU, so pick the command for your card. These are the stable commands from ComfyUI's installation guide on 24 November 2026.

NVIDIA GeForce or RTX cards:

pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu130

ComfyUI says a cu130 or newer PyTorch build is required on NVIDIA 20-series cards and newer, and its troubleshooting advice for NVIDIA users is to make sure you're on cu130 or higher.

AMD Radeon cards (Linux):

pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm7.2

This installs PyTorch built for ROCm 7.2. ComfyUI's guide notes that AMD users can install ROCm and PyTorch with pip this way if they don't already have it installed.

Intel Arc cards:

pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/xpu

This installs PyTorch with Intel's torch.xpu support. For more on Arc cards and local AI in general, see how to run local AI on an Intel Arc GPU.

ComfyUI's guide also lists nightly PyTorch builds for each vendor, which may be faster but are less tested. Stick with the stable commands unless you have a reason not to.

Step 4: Install ComfyUI's dependencies

With the virtual environment still active and from inside the ComfyUI folder, run:

pip install -r requirements.txt

Step 5: Add a model and start ComfyUI

ComfyUI needs at least one model to generate anything. Put checkpoint files (the large .safetensors or .ckpt files) in models/checkpoints and VAE files in models/vae. Then start ComfyUI:

python main.py

By default ComfyUI listens on 127.0.0.1, port 8188, according to its startup flags documentation. Open http://127.0.0.1:8188 in a browser on the same PC to load the interface.

ComfyUI-Manager lets you install, update and manage custom nodes from inside ComfyUI. The desktop app includes it, but on a manual install you set it up yourself. From the ComfyUI folder, with the virtual environment active:

pip install -r manager_requirements.txt
python main.py --enable-manager

You'll need the --enable-manager flag each time you start ComfyUI. Our guide to installing custom nodes with ComfyUI-Manager covers what to do next. Only install custom nodes you trust, because they run code on your PC.

Step 7: Open ComfyUI from another PC (optional)

Linux boxes often sit under a desk or in a cupboard as a dedicated AI machine. To reach ComfyUI from another computer on your home network, start it with the --listen flag:

python main.py --listen

ComfyUI's documentation says --listen without a value listens on all IPv4 and IPv6 interfaces, and --port changes the port from the default 8188. Then browse to http://<your-linux-pc's-ip>:8188 from the other machine. Anyone on your network can then use it, so don't expose it to the internet. If you want to reach it while away from home, a private network tool is safer; see how to access your home PC remotely with Tailscale.

Useful launch options

  • Better previews while images generate: --preview-method auto. ComfyUI's guide explains how to add TAESD decoder files to models/vae_approx for higher-quality previews with --preview-method taesd.

  • Sharing models with another app: rename extra_model_paths.yaml.example in the ComfyUI folder to extra_model_paths.yaml and edit the paths, so ComfyUI can use model folders you already have.

  • Short on graphics memory: see how to run ComfyUI with low VRAM. Note that ComfyUI's README warns that the command-line flags people claim improve performance actually do the opposite, so don't add flags just because a forum post suggests them.

Troubleshooting

  • "Torch not compiled with CUDA enabled". ComfyUI's fix is to run pip uninstall torch and then reinstall with the NVIDIA command from Step 3.

  • An AMD card that ROCm doesn't officially support. ComfyUI's guide suggests trying HSA_OVERRIDE_GFX_VERSION=10.3.0 python main.py for the RX 6700, RX 6600 and possibly other RDNA 2 or older cards, and HSA_OVERRIDE_GFX_VERSION=11.0.0 python main.py for the RX 7600 and possibly other RDNA 3 cards. This is a workaround, not official support.

  • Slow AMD performance. ComfyUI suggests trying the environment variable PYTORCH_TUNABLEOP_ENABLED=1, which it says might speed things up at the cost of a very slow first run.

  • Problems after installing custom nodes. Start ComfyUI with --disable-all-custom-nodes to check whether a custom node is to blame. ComfyUI also recommends removing all command-line flags when troubleshooting.

  • Old PyTorch. ComfyUI says that if your PyTorch is more than six months old, you should update it.

Our verdict

To install ComfyUI on Linux, set up your GPU driver first, then clone ComfyUI from the Comfy-Org GitHub repository, create a Python virtual environment, install the PyTorch build for your card (cu130 for NVIDIA, rocm7.2 for AMD Radeon, xpu for Intel Arc), install requirements.txt and run python main.py. Add ComfyUI-Manager with manager_requirements.txt and the --enable-manager flag, and use --listen if you want to reach it from another PC on your home network. Always check ComfyUI's installation guide for the current PyTorch command before you start, because it changes as new versions arrive.

The bottom line

To install ComfyUI on Linux, set up your GPU driver first, then clone ComfyUI from the Comfy-Org GitHub repository, create a Python virtual environment, install the PyTorch build for your card (cu130 for NVIDIA, rocm7.2 for AMD Radeon, xpu for Intel Arc), install requirements.txt and run python main.py. Add ComfyUI-Manager with manager_requirements.txt and the --enable-manager flag, and use --listen if you want to reach it from another PC on your home network. Always check ComfyUI's installation guide for the current PyTorch command before you start, because it changes as new versions arrive.

In this article

Sources

  1. 01ComfyUI, ComfyUI README (GitHub)
  2. 02ComfyUI, Installing ComfyUI (docs/installation.md on GitHub)
  3. 03ComfyUI documentation, Startup flags

About the author

Marcus Thorne

Systems & Technical Editor

Marcus writes Forge PC's step-by-step build, troubleshooting and system optimisation guides. His background spans Windows kernel and power-state diagnostics, UEFI/BIOS configuration, NVMe storage arrays, ATX 3.1 power delivery and running local AI and LLM workloads on consumer graphics cards.

More from Marcus Thorne

Read next

SGLang vs vLLM: Which LLM Serving Engine Should You Run on Your PC?

Versus

SGLang vs vLLM: Which LLM Serving Engine Should You Run on Your PC?

SGLang vs vLLM for a local AI server: both are fast, open-source LLM serving engines with OpenAI-compatible APIs that run on Linux. vLLM supports more home hardware, including AMD Radeon RX 7900 and RX 9000 cards, while SGLang suits recent NVIDIA RTX cards and agent-heavy workloads.

Callum Reid6 min