CivArchive
    ← All articles
    Published November 18, 2025by LeonardoMe

    ComfyUI+Sageattention one click installation

    142 views0 reactions0 comments on CivitAI4 collected
    comfyui, triton, sageattention, installationtool guide

    Hello,

    I've watched and read countless videos and articles about ComfyUI and Sageattention. Each one had its pros and cons. Since I'm basically a lazy person and repeating all the steps over and over was very unsatisfying for me, I decided to create a batch file that does everything—and I mean everything—for me all at once. Well, two steps still need to be done manually, but only if you actually want the portable version of ComfyUI to be truly portable. More on that later. So, if you want to install ComfyUI with Triton and Sageattention from scratch, then this article and the batch file are for you.

    IMPORTANT!

    The file creates the installation in the folder where it is run.

    What will be installed?

    - Git (if not already installed)

    - ComfyUI

    - Python 3.12.9

    - virtualenv

    - pip

    - Triton

    - Sageattention

    - ComfyUI Manager

    - ComfyUI Impact Pack

    - A start.bat file with parameters will be created.

    This batch file (see attachments) is inspired by ivo, who created the AI-​​Toolkit installation batch file. A file with installation of the most used custom_nodes is also here (see attachments)

    Now for the two things that can be changed manually after the installation is complete. Go to the ComfyUI\venv folder and edit the pyenv.cfg file. Change the paths to:

    home = ..\python

    implementation = CPython

    version_info = 3.12.9.final.0

    virtualenv = 20.35.4

    include-system-site-packages = false

    base-prefix = ..\python

    base-exec-prefix = ..\python

    base-executable = ..\python\python.exe

    SAVE!

    Then go to the ComfyUI\venv\Scripts folder and edit the activate.bat file. Change the entry on line 8 to:

    @set "VIRTUAL_ENV=%cd%\venv"

    That's all. Now you can run ComfyUI and even move it to a different drive.

    Disclaimer:
    This file is tested on RTX 2080 and RTX 5090 with the Nvidia Studio driver version 581.57.
    If any bugs are there please contact me.

    Use and run this file at your own risk and responsibility!

    Attachments