<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Shishir Bhandari</title>
    <description>The latest articles on DEV Community by Shishir Bhandari (@shishirbhandari).</description>
    <link>https://dev.to/shishirbhandari</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F512630%2Ff51af235-1999-4ae8-b927-598dcdd19b3c.jpeg</url>
      <title>DEV Community: Shishir Bhandari</title>
      <link>https://dev.to/shishirbhandari</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/shishirbhandari"/>
    <language>en</language>
    <item>
      <title>Installing ComfyUI in any Linux distro (quick and easy)</title>
      <dc:creator>Shishir Bhandari</dc:creator>
      <pubDate>Mon, 07 Sep 2026 08:03:43 +0000</pubDate>
      <link>https://dev.to/shishirbhandari/installing-and-using-comfyui-in-linux-4l0c</link>
      <guid>https://dev.to/shishirbhandari/installing-and-using-comfyui-in-linux-4l0c</guid>
      <description>&lt;p&gt;ComfyUI is one of the most popular tool to run local LLMs whether it is image generation, video generation or text generation; On Windows OS, ComfyUI provides official desktop app, however, in linux, there is no such desktop app. We can easily install ComfyUI on our own by using their official github repository.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Following steps can be followed on any linux environment; I have tried to keep this instruction distro-independent.&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Please make sure to have already installed the GPU drivers for your specific GPU (Nvidia/AMD/Intel).&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Installation Steps
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Clone ComfyUI repository
&lt;/h3&gt;

&lt;p&gt;First of all, let's clone the &lt;a href="https://github.com/comfy-org/comfyui" rel="noopener noreferrer"&gt;official ComfyUI repository&lt;/a&gt; in a local folder. For example, I have created a folder called &lt;code&gt;softwares&lt;/code&gt; in my home directory.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;mkdir&lt;/span&gt; &lt;span class="nt"&gt;-p&lt;/span&gt; softwares
&lt;span class="nb"&gt;cd &lt;/span&gt;softwares
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/Comfy-Org/ComfyUI.git
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cd &lt;/span&gt;ComfyUI
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Install uv
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;uv&lt;/code&gt; is a very fast python package manager that also supports python verion management, alternative to popular tool &lt;code&gt;pyenv&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-LsSf&lt;/span&gt; https://astral.sh/uv/install.sh | sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;exec&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$SHELL&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Verify&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;uv &lt;span class="nt"&gt;--version&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Install python 3.13
&lt;/h3&gt;

&lt;p&gt;Let's install uv to install python &lt;code&gt;3.13&lt;/code&gt; because ComfyUI might break and some components might not work on the latest python version 3.14.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;uv python &lt;span class="nb"&gt;install &lt;/span&gt;3.13
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;exec&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$SHELL&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Create virtual environment
&lt;/h3&gt;

&lt;p&gt;In the ComfyUI directory, let's create a new python 3.13 virtual environment using uv&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;uv venv &lt;span class="nt"&gt;--python&lt;/span&gt; 3.13
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Install pytorch
&lt;/h3&gt;

&lt;p&gt;We need to install pytorch differently depending on what GPU we have. &lt;em&gt;This step might take some time depending on the internet speed.&lt;/em&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Nvidia GPU
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;uv pip &lt;span class="nb"&gt;install &lt;/span&gt;torch torchvision torchaudio &lt;span class="nt"&gt;--extra-index-url&lt;/span&gt; https://download.pytorch.org/whl/cu130
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  AMD GPU
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;uv pip &lt;span class="nb"&gt;install &lt;/span&gt;torch torchvision torchaudio &lt;span class="nt"&gt;--index-url&lt;/span&gt; https://download.pytorch.org/whl/rocm7.2
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Intel GPU
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;uv pip &lt;span class="nb"&gt;install &lt;/span&gt;torch torchvision torchaudio &lt;span class="nt"&gt;--index-url&lt;/span&gt; https://download.pytorch.org/whl/xpu
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Install dependencies/requirements
&lt;/h3&gt;

&lt;p&gt;After installing the pytorch based on your GPU, we have to install the requirements of ComfyUI using the following commands.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;uv pip &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-r&lt;/span&gt; requirements.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Installing manager requirements is optional, but it is recommended to install manager requirements as well because we might want to install ComfyUI addons and plugins later.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Optional: Installing ComfyUI manager requirements&lt;/span&gt;
uv pip &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-r&lt;/span&gt; manager-requirements.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;All the requirements have been installed; now, we can run the comfy ui.&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Running the comfy UI
&lt;/h3&gt;

&lt;p&gt;Run one of the following command depending whether you want ComfyUI manager or not. &lt;strong&gt;Enabling manager is recommended&lt;/strong&gt;&lt;br&gt;
Without manager&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;uv run python3.13 main.py
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;With manager&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;uv run python3.13 main.py &lt;span class="nt"&gt;--enable-manager&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Accessing on the browser
&lt;/h4&gt;

&lt;p&gt;Go to your browser and enter the URL: &lt;a href="http://127.0.0.1:8188" rel="noopener noreferrer"&gt;http://127.0.0.1:8188&lt;/a&gt;.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Note: the URL and port number is shown in the terminal if you have correctly installed and run the comfyUI.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;On the browser, following windows will show up.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fuys62znucnw3qljdnr78.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fuys62znucnw3qljdnr78.png" alt="Comfy UI home page on first run" width="800" height="388"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Running a workflow and beyond
&lt;/h4&gt;

&lt;p&gt;Choose one of the templates you are interested in and download the required models for that template and run the workflow.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;If you are confused in running the workflow, or if it the first time you are using ComfyUI, following youtube video guides you in understanding ComfyUI workflows, how they work and how to create your own workflows.&lt;/strong&gt;&lt;br&gt;
  &lt;iframe src="https://www.youtube.com/embed/VM9snsuoqBc" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>comfy</category>
      <category>comfyui</category>
      <category>llm</category>
      <category>linux</category>
    </item>
  </channel>
</rss>
