Guide 1: How to Install ComfyUI Correctly
Platform support: Windows | Mac (M1/M2/M3) | Linux
#Overview
This guide provides step-by-step installation instructions for ComfyUI across all major platforms. Follow the instructions for your operating system exactly to avoid common setup errors.
Estimated time: 10-15 minutes
Hardware Partner
Running these workflows? ComputeAtlas.ai helps you find the right GPU
Optimization is only half the battle. Get precise VRAM benchmarks and hardware recommendations tailored for ComfyUI.
Check GPU Prices โ#๐ช Windows Installation (Recommended for Beginners)
Method 1: Portable Version (Easiest)
Best for: Beginners, plug-and-play users, anyone who wants zero setup
Step 1: Download ComfyUI Portable
- โGo to ComfyUI GitHub Releases
- โLook for the latest release
- โDownload:
ComfyUI_windows_portable_nvidia_cu121.7z(or latest CUDA version)
Step 2: Extract the Archive
- โRight-click the
.7zfile - โExtract to a simple path:
comfyui-workflow.json
โ Avoid paths with:
- โSpaces (
C:\Program Files\ComfyUI) - โSpecial characters
- โVery long folder names
- โOneDrive/Cloud synced folders
Step 3: Run ComfyUI
- โOpen the extracted folder
- โDouble-click:
run_nvidia_gpu.bat - โWait for the console window to finish loading
- โYour browser will open automatically to:
http://127.0.0.1:8188
โ Success: You should see the ComfyUI interface with a default workflow
Method 2: Desktop Install (Advanced)
Best for: Developers, power users, those wanting Git integration
Prerequisites
- โPython 3.10 or 3.11 (Download here)
- โGit (Download here)
- โNVIDIA GPU drivers (latest)
Step 1: Clone the Repository
Open Command Prompt or PowerShell:
Step 2: Install Dependencies
Note: Replace cu121 with your CUDA version if different
Step 3: Run ComfyUI
Browser will open to http://127.0.0.1:8188
#๐ Mac Installation (M1/M2/M3)
Step 1: Install Python
Download Python 3.10 or 3.11 from python.org
Verify installation:
Step 2: Clone ComfyUI
Open Terminal:
Step 3: Install Requirements
Step 4: Run ComfyUI
For M1/M2/M3 optimization:
Browser opens to http://127.0.0.1:8188
#๐ง Linux Installation
Step 1: Update System Packages
Step 2: Clone ComfyUI
Step 3: Install CUDA (NVIDIA GPUs)
Check CUDA version:
Install PyTorch with CUDA:
Step 4: Install Requirements
Step 5: Run ComfyUI
#๐จ Common Installation Errors
Error: "CUDA not available"
Cause: PyTorch installed without CUDA support
Fix:
Error: "ModuleNotFoundError: No module named 'torch'"
Cause: PyTorch not installed
Fix:
Error: "Access Denied" when running .bat file
Cause: Windows security blocking execution
Fix:
- โRight-click
run_nvidia_gpu.bat - โProperties โ Unblock โ Apply
- โRun as Administrator
Error: Browser doesn't open automatically
Manual access:
Open browser and go to: http://127.0.0.1:8188
Error: "Port 8188 already in use"
Cause: Another instance of ComfyUI is running
Fix:
Or specify a different port:
#โ Verify Installation
After installation, verify ComfyUI is working:
- โLoad default workflow - Should load without errors
- โCheck GPU detection:
- โLook at console output
- โShould show:
Device: cuda(NVIDIA) orDevice: mps(Mac)
- โGenerate a test image:
- โUse the default workflow
- โClick "Queue Prompt"
- โImage should generate successfully
#๐ Folder Structure After Installation
#๐ Updating ComfyUI
Portable Version
- โDownload the latest portable release
- โExtract to a new folder
- โCopy your
models/folder to the new installation - โCopy your
custom_nodes/folder
Desktop Install
#๐ฏ Next Steps
- โDownload models โ See Model Folders Guide
- โInstall custom nodes โ See Custom Nodes Guide
- โOptimize performance โ See Performance Guide
#๐ Still Having Issues?
โ See Fix Missing Dependencies
โ See GPU and CUDA Errors
โ Use Troubleshooting Assistant
Need to decide between Portable and Desktop? See: Installation Decision Guide
Hardware Partner
Running these workflows? ComputeAtlas.ai helps you find the right GPU
Optimization is only half the battle. Get precise VRAM benchmarks and hardware recommendations tailored for ComfyUI.
Check GPU Prices โ