lollms/scripts/windows/win_conda_session.bat

30 lines
781 B
Batchfile
Raw Normal View History

2023-10-22 14:23:45 +00:00
@echo off
@echo Starting LOLLMS Web UI...
cd /D "%~dp0"
@rem better isolation for virtual environment
SET "CONDA_SHLVL="
SET PYTHONNOUSERSITE=1
SET "PYTHONPATH="
SET "PYTHONHOME="
SET "TEMP=%cd%\installer_files\temp"
SET "TMP=%cd%\installer_files\temp"
@rem workaround for broken Windows installs
set PATH=%PATH%;%SystemRoot%\system32
set INSTALL_ENV_DIR=%cd%\installer_files\lollms_env
set MINICONDA_DIR=%cd%\installer_files\miniconda3
if not exist "%MINICONDA_DIR%\Scripts\activate.bat" ( echo Miniconda not found. Please reinstall lollms using win_install.bat. && goto end )
call "%MINICONDA_DIR%\Scripts\activate.bat" activate "%INSTALL_ENV_DIR%"
cd lollms
@rem set default cuda toolkit to the one in the environment
set "CUDA_PATH=%INSTALL_ENV_DIR%"
cmd.exe
:end
pause