| @echo off |
|
|
| set "requirements_txt=%~dp0\requirements.txt" |
| set "python_exec=..\..\..\python_embeded\python.exe" |
|
|
| echo Installing ComfyUI's Mixlab Nodes.. |
|
|
| if exist "%python_exec%" ( |
| echo Installing with ComfyUI Portable |
| for /f "delims=" %%i in (%requirements_txt%) do ( |
| %python_exec% -s -m pip install "%%i" -i https://pypi.tuna.tsinghua.edu.cn/simple |
| ) |
|
|
| %python_exec% -s -m pip install --upgrade --force llama-cpp-python --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cu121 |
|
|
| %python_exec% -s -m pip install --upgrade --force llama-cpp-python[server] |
| |
|
|
| ) else ( |
| echo Installing with system Python |
| for /f "delims=" %%i in (%requirements_txt%) do ( |
| pip install "%%i" -i https://pypi.tuna.tsinghua.edu.cn/simple |
| ) |
| ) |
|
|
| pause |