mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-08-19 17:36:36 +08:00
20 lines
456 B
Batchfile
20 lines
456 B
Batchfile
@echo off
|
|
|
|
set "requirements_txt=%~dp0\requirements.txt"
|
|
set "python_exec=..\..\..\python_embeded\python.exe"
|
|
|
|
echo Installing WAS-NS ...
|
|
|
|
if exist "%python_exec%" (
|
|
echo Installing with ComfyUI Portable
|
|
for /f "delims=" %%i in (%requirements_txt%) do (
|
|
%python_exec% -s -m pip install "%%i"
|
|
)
|
|
) else (
|
|
echo Installing with system Python
|
|
for /f "delims=" %%i in (%requirements_txt%) do (
|
|
pip install "%%i"
|
|
)
|
|
)
|
|
|
|
pause |