Skip to content

Commit 11b13be

Browse files
committed
Don't use Python command with version.
After the virtual environment is setup, don't use the Python command with a version. This will make it easier to maintain the script as Python version dependency changes. See: #14
1 parent 44cf3f5 commit 11b13be

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

automatic1111-webui.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ if [ "${optupdate}" == "true" ]; then
6363
git checkout "${tag}";
6464
fi
6565

66-
python3.10 -m pip install --upgrade pip;
67-
#python3.10 -m pip install --upgrade httpcore;
68-
python3.10 -m pip install httpx==0.24.1;
66+
python -m pip install --upgrade pip;
67+
#python -m pip install --upgrade httpcore;
68+
python -m pip install httpx==0.24.1;
6969

7070
linkcentraldir "textual_inversion_templates" textual_inversion_templates/;
7171

@@ -107,7 +107,7 @@ mvlinkfile ui-config.json config/;
107107

108108
git restore webui-user.sh;
109109
sed \
110-
--expression='s/#python_cmd="python3"/python_cmd="python3.10"/' \
110+
--expression='s/#python_cmd="python3"/python_cmd="python"/' \
111111
--expression='s/#export COMMANDLINE_ARGS=""/#export COMMANDLINE_ARGS="--api --xformers"/' \
112112
webui-user.sh \
113113
--in-place;

bmaltais-kohya_ss.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ if [ "${optupdate}" == "true" ]; then
6969
git checkout "${tag}";
7070
fi
7171

72-
python3.10 -m pip install --upgrade pip;
72+
python -m pip install --upgrade pip;
7373

7474
linkcentraldir "training-data" training-data/;
7575

vladmandic-automatic.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ fi
5252

5353
source venv/bin/activate;
5454

55-
python3.10 -m pip install --upgrade pip;
56-
#python3.10 -m pip install --upgrade httpcore;
57-
#python3.10 -m pip install httpx==0.24.1;
55+
python -m pip install --upgrade pip;
56+
#python -m pip install --upgrade httpcore;
57+
#python -m pip install httpx==0.24.1;
5858

5959
linkmodelsdir "chainner" models/chaiNNer/;
6060
linkmodelsdir "codeformer" models/Codeformer/;

0 commit comments

Comments
 (0)