mirror of https://github.com/bmaltais/kohya_ss
fix: use python 3.10 prior to avoid use python higher than 3.10 mistakenly
parent
63657088f4
commit
bf53d0f1e6
6
setup.sh
6
setup.sh
|
|
@ -219,10 +219,10 @@ install_python_dependencies() {
|
|||
# Switch to local virtual env
|
||||
echo "Switching to virtual Python environment."
|
||||
if ! inDocker; then
|
||||
if command -v python3 >/dev/null; then
|
||||
python3 -m venv "$DIR/venv"
|
||||
elif command -v python3.10 >/dev/null; then
|
||||
if command -v python3.10 >/dev/null; then
|
||||
python3.10 -m venv "$DIR/venv"
|
||||
elif command -v python3 >/dev/null; then
|
||||
python3 -m venv "$DIR/venv"
|
||||
else
|
||||
echo "Valid python3 or python3.10 binary not found."
|
||||
echo "Cannot proceed with the python steps."
|
||||
|
|
|
|||
Loading…
Reference in New Issue