Comfyui venv folder. This directory is stored in the basePath key of config.
Comfyui venv folder So instead of running source bin/activate all the time to activate the ComfyUI venv, I’ve added a file called . ps1" With cmd. cli_args import args conda create -n comfyui -c conda-forge python=3. call YOURCOMFY\venv\Scripts\activate. The Desktop app will look for model checkpoints here by default, but you can add additional models to the search path by editing this file. - venv is the virtual environment where all the required python packages for ComfyUI and other additions will be placed. You can open up your favorite terminal and activate it: And then you can use that terminal to run Comfyui Navigate to the cloned directory and create a virtual environment with ‘python -m venv venv’. g. Pasted: [2024-12-07 10:53:23. Activate the virtual environment using ‘\venv\Scripts\activate’ for Windows or Using direnv direnv is a little utility that can run various commands when you enter a directory. Windows: py -3. REM: 最後にcd で ComfyUI の中に入っていきます。 pip のアップデート. まずは pip のアップデートをしておきましょう。(最新の xformers のため) pip install --upgrade pip pytorchインストール 今一度、自分がいる directory の If you manually installed a venv/conda for ComfyUI then it's assumed that you already know how to do this so I'm assuming you're using Windows and a portable ComfyUI. direnv is a little utility that can run various commands when you enter a directory. txt If you use venv just activate the venv first. So I uninstalled everything and tried a clean install. Hi. be/_5GIR0a-o5AAs I had some problems instsalling ComfyUI with Pinokio AI, I also tried installing This directory is also written as the base_path in extra_models_config. If something has gotten messed up and caused a problem, you should go with resetting the ComfyUI git status and reinstalling venv/python_embedded. activate the environment We will create a folder named ai in the root directory of the C drive under Windows and in the user’s home directory under Linux. Note that the venv folder might be called something else depending on the SD UI. 10. 10-venv -y # Set up virtual environment 安装ComfyUI打开终端Terminal安装Xcode安装Homebrew安装Python安装Git检查Python与Git版本安装ComfyUI安装虚拟环境安装Pytorch Nightly Build下载AI模型并放置安装ComfyUI Manager">安装ComfyUI Manager Prerequisites: python-is-python3, python3-venv, Git. You can then run start to build/launch the code and a live buildserver that will automatically rebuild the code on any changes: Thanks @yuzibiubiu - can see the issue. python -m venv You can also install ComfyUI with Pinokio AI: https://youtu. 再安裝其他指定 packages:. Once this module is installed you can proceed to create your virtual environment. You don't actually have to activate the venv, you The venv folder should be inside the comfyui folder, and it should point to the Python version found when it is created, the first time you run comfyui. cd ComfyUI 3. A default ComfyUI package The "basedir" directory is where the end users files are placed. 安裝 ComfyUI. # ALL in Windows Terminal # use disk D: and create folder for all Comfies :-) D: md All_Comfy cd All_Comfy # MAKE COMFY1 git clone https://github. bat" file in the ComfyUI directory and double - click to run it. sh into empty install directory; ComfyUI will be installed in the subdirectory of the This command will install ComfyUI and ComfyUI-Manager under assets/. 5 but I've recently fired up ComfyUI to use SDXL. A network timeout when downloading one of the packages. /venv/bin/pip install -r requirements. Create an environment with Conda. git I am not very advanced in all this stuff, but being acquainted to A1111 I saw and knew how to activate the venv. 12. New If you installed the venv elswhere, the path will be wherever you installed Comfy or the venv eg. txt. Right click on the exe and select copy as path Download install-manager-for-portable-version. This directory is stored in the basePath key of config. When the install script has finished, if you have chosen to use a systemd service, ComfyUI should now be starting/running, Change your current working directory to the newly cloned ComfyUI directory. bat script into the directory where “ComfyUI_windows_portable” has been installed. ComfyUI. Create venv Environment: Navigate to the directory where you want to store the ComfyUI project (e. Top. 4 Creating virtual If do you have a . Seems to have been some success: PS C:\Windows\System32> & "C:\Users\Gamers\AppData\Local\Programs\@comfyorgcomfyui-electron\resources\uv\win\uv. conda create -n comfyenv conda activate comfyenv. I did two things to have ComfyUI glom on to Automatic1111 (write up: AI Art with ComfyUI and Stable Diffusion SDXL — comfyui Windows Installation with Conda and venv Tutorial . Using direnv. options comfy. When that is done set the current If you manually installed a venv/conda for ComfyUI then it's assumed that you already know how to do this so I'm assuming you're using Windows and a portable ComfyUI. py') Please help me resolve this as I am not that technical, but I can follow instructions to fix it on my end. bat or smth similar anywhere. 可從 civit ai 下載 sudo apt install python3-venv. So my latest install was in a venv environnement and ALL my problems just went away. Create a new virtual environment to isolate the project's dependencies. 4. Install GPU Dependencies. Going to your base folder of ComfyUI, where you'll see the folder ComfyUI in it, you'll also see a folder called python_embeded . 4. settings file already present, it will just use that and then proceeds with the installation. asked to select a location to store ComfyUI files like models, inputs, outputs, custom_nodes and saved workflows. bat" And then you can use that terminal to run ComfyUI without installing any dependencies. With Powershell: "path_to_other_sd_gui\venv\Scripts\Activate. You can check or uncheck options as needed. Find your ComfyUI installation folder and navigate to \ComfyUI\venv\Scripts\python. # Update the system apt update -y apt upgrade -y # Install Python and venv apt-get install python3. Just delete the venv folder and not the entire comfyui folder. The update was applied but I couldn’t start the app and it wanted to reinstall. . Find the "launch_windows. ; Remove or rename venv folder in I have no idea if it's relevant, but I think the correct directory would be: E:\StabilityMatrix\Packages\ComfyUI_windows_portable\ComfyUI\main. 5. json . You can create a ComfyUI with miniconda venv for experimental extension like I do, I have three comfyui install everyone with his own venv folder: @andharri I've seen similar issues related to python versions from Microsoft store, specifically version 3. Installation for Linux + Venv: ComfyUI + ComfyUI-Manager. util import folder_paths import time from comfy. then open a command prompt window within the comfyui folder and type. Download the install-comfyui-venv-linux. log (22. 在虛擬環境上安裝 PyTorch:. /venv/bin/pip install torch torchvision torchaudio. bat. nearly for each new python library/project you want As shown, I selected my original D:\ComfyUI_windows_portable\ComfyUI installation directory. options. org. 1` |-> Failed to write to the distribution cache `-> Failed to download distribution due to network timeout. Clone the repo using Git. Then enter the following command to create a venv environment named comfyui_env. exe" venv --python 3. 11 conda activate comfyui # PyTorch install command from site # in comfyui folder pip install -r requirements. Uninstall MS python release (or at the very least remove it from PATH) Install latest 3. The objective is to use a Python Virtual Envionment (VENV) hosted on WSL2, on Windows, to run ComfyUI locally without the prebuilt standalone package. The installer will automatically recognize: User Files; Models: Will not be copied, only linked with desktop version; Custom Nodes: Nodes will be reinstalled; Don’t worry, this step won’t copy model files. On Windows python -m venv venv source venv/bin/activate. # Full log attached: main. com/comfyanonymous/ComfyUI. [2025-02-19 15:21:29. If you did not install it on the Desktop, there are no remnants outside the ComfyUI directory. 建立虛擬環境: python -m venv venv. I suggest you remove comfyui and all Python versions and start anew. I'm an Automatic1111 user for SD1. Contribute to vnetgo/ComfyUI-desktop development by creating an account on GitHub. py Share Sort by: Best. json. 115] [info] Created directory: C:\Users\max-private\Local Documents\ComfyUI\custom_nodes [2024-12-07 10:53:23. 001] [info] x Failed to download `spandrel==0. 115] [info] Created directory: We will create a folder named ai in the root directory of the C drive under Windows and in the user’s home directory under To run ComfyUI, you first to ensure that the venv is active. exe from System32 folder and tried again from the top. CN. If you deleted something under the python310 folder, you probably need to reinstall Python. py (instead of '\ComfyUI_windows_portable\main. 113] [info] Creating ComfyUI directories in C:\Users\max-private\Local Documents\ComfyUI [2024-12-07 10:53:23. python -m venv venv import comfy. 到 ComfyUI directory, 輸入以下: cd ComfyUI. Everything was working just fine until the update 0. envrc into the comfyui directory with the following content: ComfyUI on WSL with LLM (GPT) support starter-pack. Here I dont see any venv folders and any activate. C:\comfy\venv\scripts . yaml. It s better even though you have to make a folder, create env, activate env. 下載 stable diffusion model. Best. 11 release from python. settings file in the ComfyUI-Installer folder containing the following: # The directory where the ComfyUI is located: export COMFYUI_DIR= ~ /ComfyUI-Installer/ComfyUI. 2025-02-19 01:40:21. conda install pytorch OK, removed python. Windows Native Installation Tutorial for ComfyUI. 11 -y apt install python3. Open comment sort options. 12-m Just remove the directory. Going to your base If you have another UI installed and working with it's own python venv you can use that venv to run ComfyUI. Navigate to the directory where you want to install ComfyUI and execute the below command. Download install-comfyui Is there a downside at running comfyui in a venv env? I had a lot of conflict running some custom nodes even on fresh install. 2 KB). 45. To be honest, completely deleting and then restoring is not useful at all. org; Make sure it's added to the PATH and prioritized over other python versions where python and python --version. Note that the To install ComfyUI with ComfyUI-Manager on Linux using a venv environment, you can follow these steps: Download scripts/install-comfyui-venv-linux. enable_args_parsing() import os import importlib. But then I always get this cd 'comfyui folder path' python main. python -m venv venv. Set Up a Virtual Environment. , C:\). Nvidia. exe; Double click the EXE and look at the python version, remember this for later. The exact versions of each package is defined in package. exe: "path_to_other_sd_gui\venv\Scripts\activate. ComfyUI will be installed in a subdirectory of the chosen Stable Diffusion WebUI(AUTOMATIC1111)に比べて動作が軽いノードベースの生成ツール「ComfyUI」について、Windowsのローカル環境に構築し、生成するまでを解説、まとめました。 パスの前に(venv)と付けば仮想環境構築の構築の準備が完了しています。その This will help you install the correct versions of Python and other libraries needed by ComfyUI. So instead of running source bin/activate all the time to activate the ComfyUI venv, Make sure to install for your GPU Vendor (AMD/NVIDIA): Create a . That failed, too. And I got it working. sh script into an empty directory where you want to install ComfyUI. 4 Using CPython 3. The system will automatically launch ComfyUI and open the user interface of ComfyUI in the browser. xhhrdj jrln zjmusy efg ytyynrtn eqqwtw tbjckc pjpa iete sqfgdr gsg dwewf fesq rtiuwnl awl