From d8447ef1a9184c20dabc23b5ef52f53b09ce81a5 Mon Sep 17 00:00:00 2001 From: JeLuF Date: Tue, 9 May 2023 18:04:45 +0200 Subject: [PATCH 1/2] Unset PYTHONHOME in Start Stable Diffusion UI.cmd PYTHONHOME needs to be deleted before conda gets called for the first time. --- scripts/Start Stable Diffusion UI.cmd | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/Start Stable Diffusion UI.cmd b/scripts/Start Stable Diffusion UI.cmd index 4f8555ea..27628441 100644 --- a/scripts/Start Stable Diffusion UI.cmd +++ b/scripts/Start Stable Diffusion UI.cmd @@ -4,6 +4,7 @@ cd /d %~dp0 echo Install dir: %~dp0 set PATH=C:\Windows\System32;%PATH% +set PYTHONHOME= if exist "on_sd_start.bat" ( echo ================================================================================ From c0dcf1633c35a18359d54aa8c5fbc6fa7daee104 Mon Sep 17 00:00:00 2001 From: JeLuF Date: Tue, 9 May 2023 18:07:46 +0200 Subject: [PATCH 2/2] Unset PYTHONHOME in start.sh --- scripts/start.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/start.sh b/scripts/start.sh index 3d8a585d..b309216a 100755 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -19,6 +19,7 @@ if [ -f "on_sd_start.bat" ]; then exit 1 fi +unset PYTHONHOME # set legacy installer's PATH, if it exists if [ -e "installer" ]; then export PATH="$(pwd)/installer/bin:$PATH"; fi