-
-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
yolain
committed
Oct 6, 2024
1 parent
609ccce
commit 51ee274
Showing
4 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
|
||
requirements_txt="$(dirname "$0")/requirements.txt" | ||
requirements_repair_txt="$(dirname "$0")/repair_dependency_list.txt" | ||
python_exec="../../../python_embeded/python.exe" | ||
aki_python_exec="../../python/python.exe" | ||
|
||
echo "Installing EasyUse Requirements..." | ||
|
||
if [ -f "$python_exec" ]; then | ||
echo "Installing with ComfyUI Portable" | ||
"$python_exec" -s -m pip install -r "$requirements_txt" | ||
elif [ -f "$aki_python_exec" ]; then | ||
echo "Installing with ComfyUI Aki" | ||
"$aki_python_exec" -s -m pip install -r "$requirements_txt" | ||
while IFS= read -r line; do | ||
"$aki_python_exec" -s -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple "$line" | ||
done < "$requirements_repair_txt" | ||
else | ||
echo "Installing with system Python" | ||
pip install -r "$requirements_txt" | ||
fi | ||
|
||
read -p "Press any key to continue..." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters