Installing COMFYUI in Virtual Environment
Write this in notepad and save as ".bat" file: @echo off REM Change directory to C drive root cd C:\ REM Create directory ai if it does not exist if not exist "ai" mkdir ai cd ai REM Clone the repository if not exist "ComfyUI" ( git clone https://github.com/comfyanonymous/ComfyUI.git ) cd ComfyUI REM Create and activate virtual environment if not exist "venv" ( python -m venv venv ) call venv\Scripts\activate.bat REM Install dependencies pip install torch==2.1.0+cu121 torchvision==0.16.0+cu121 torchaudio==2.1.0+cu121 --extra-index-url https://download.pytorch.org/whl xformers pip install -r requirements.txt REM Run ComfyUI python main.py --listen