From 795efcb25f2a5591496accd33a926a4bfce8288b Mon Sep 17 00:00:00 2001 From: yolain Date: Tue, 30 Jul 2024 18:41:15 +0800 Subject: [PATCH] Add Repair dependency list for Comfyui Aki --- install.bat | 6 +++++- repair_dependency_list.txt | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 repair_dependency_list.txt diff --git a/install.bat b/install.bat index 77c7de6..1fbe1c1 100644 --- a/install.bat +++ b/install.bat @@ -1,6 +1,7 @@ @echo off set "requirements_txt=%~dp0\requirements.txt" +set "requirements_repair_txt=%~dp0\repair_dependency_list.txt" set "python_exec=..\..\..\python_embeded\python.exe" set "aki_python_exec=..\..\python\python.exe" @@ -12,7 +13,10 @@ if exist "%python_exec%" ( )^ else if exist "%aki_python_exec%" ( echo Installing with ComfyUI Aki - "%aki_python_exec%" -s -m pip install -r "%requirements_txt%" + "%aki_python_exec%" -s -m pip install -r "%requirements_txt%" + for /f "delims=" %%i in (%requirements_repair_txt%) do ( + %aki_python_exec% -s -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple "%%i" + ) )^ else ( echo Installing with system Python diff --git a/repair_dependency_list.txt b/repair_dependency_list.txt new file mode 100644 index 0000000..a66377e --- /dev/null +++ b/repair_dependency_list.txt @@ -0,0 +1,4 @@ +numpy>=1.19.0 +huggingface_hub>=0.23.3 +transformers>=4.38.2 +protobuf>=4.25.3 \ No newline at end of file