# Install dependencies. Change `python-pytorch-rocm` to the package that supports your GPU or `python-pytorch` for CPU.
pacman -Syu base-devel git python-pytorch-rocm python-torchvision python-torchaudio libwebp
# Add a user for ComfyUI to run as.
useradd -U -r -s /usr/bin/nologin -d /var/lib/comfyui comfyui
# Clone the latest version of ComfyUI.
git clone https://github.com/comfyanonymous/ComfyUI.git /var/lib/comfyui