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 ā