From 1cb365fff1ac06fa599ee837d7021f8ca6939c45 Mon Sep 17 00:00:00 2001 From: cmdr2 Date: Thu, 13 Oct 2022 11:01:09 +0530 Subject: [PATCH] Prefer the locally installed conda over any global conda installation --- installer/install.bat | 2 +- invoke.bat | 2 +- update.bat | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/installer/install.bat b/installer/install.bat index ef5789e486..630fd8037c 100644 --- a/installer/install.bat +++ b/installer/install.bat @@ -48,7 +48,7 @@ if "%PACKAGES_TO_INSTALL%" NEQ "" ( call "%MAMBA_ROOT_PREFIX%\micromamba.exe" install -y --prefix "%INSTALL_ENV_DIR%" -c conda-forge %PACKAGES_TO_INSTALL% ) -set PATH=%PATH%;%INSTALL_ENV_DIR%;%INSTALL_ENV_DIR%\Library\bin;%INSTALL_ENV_DIR%\Scripts +set PATH=%INSTALL_ENV_DIR%;%INSTALL_ENV_DIR%\Library\bin;%INSTALL_ENV_DIR%\Scripts;%PATH% @rem get the repo (and load into the current directory) if not exist ".git" ( diff --git a/invoke.bat b/invoke.bat index ff96fcd4fb..4689153ae8 100644 --- a/invoke.bat +++ b/invoke.bat @@ -4,7 +4,7 @@ if not defined in_subprocess (cmd /k set in_subprocess=y ^& %0 %*) & exit ) set INSTALL_ENV_DIR=%cd%\installer_files\env -set PATH=%PATH%;%INSTALL_ENV_DIR%;%INSTALL_ENV_DIR%\Library\bin;%INSTALL_ENV_DIR%\Scripts +set PATH=%INSTALL_ENV_DIR%;%INSTALL_ENV_DIR%\Library\bin;%INSTALL_ENV_DIR%\Scripts;%PATH% call conda activate invokeai diff --git a/update.bat b/update.bat index ae61a45ab2..e81a426faf 100644 --- a/update.bat +++ b/update.bat @@ -4,7 +4,7 @@ if not defined in_subprocess (cmd /k set in_subprocess=y ^& %0 %*) & exit ) set INSTALL_ENV_DIR=%cd%\installer_files\env -set PATH=%PATH%;%INSTALL_ENV_DIR%;%INSTALL_ENV_DIR%\Library\bin;%INSTALL_ENV_DIR%\Scripts +set PATH=%INSTALL_ENV_DIR%;%INSTALL_ENV_DIR%\Library\bin;%INSTALL_ENV_DIR%\Scripts;%PATH% @rem update the repo if exist ".git" (