forked from yolain/ComfyUI-Easy-Use
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
24 lines (20 loc) · 838 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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..."