mirror of
https://github.com/ParisNeo/lollms.git
synced 2025-01-20 11:39:11 +00:00
changed install script
This commit is contained in:
parent
d190bb0bfe
commit
dd54bcecd7
@ -1,2 +1,31 @@
|
||||
@echo off
|
||||
conda deactivate && conda create --name xtts --yes && conda activate xtts && pip install xtts-api-server --user
|
||||
setlocal
|
||||
|
||||
:: Check if system-wide Conda is installed
|
||||
where conda >nul 2>&1
|
||||
if %errorlevel% == 0 (
|
||||
echo "Using system-wide Conda installation."
|
||||
call conda deactivate
|
||||
call conda info --envs | findstr /B /C:"xtts" >nul 2>&1
|
||||
if %errorlevel% == 0 (
|
||||
echo "Conda environment 'xtts' already exists. Deleting it."
|
||||
call conda env remove --name xtts --yes
|
||||
)
|
||||
call conda create --name xtts --yes
|
||||
call conda activate xtts
|
||||
call pip install xtts-api-server --user
|
||||
) else (
|
||||
echo "No system-wide Conda found. Using portable Conda installation."
|
||||
set CONDA_BASE=installer_files\miniconda3
|
||||
call "%CONDA_BASE%\Scripts\activate.bat"
|
||||
call "%CONDA_BASE%\condabin\conda.bat" deactivate
|
||||
call "%CONDA_BASE%\condabin\conda.bat" info --envs | findstr /B /C:"xtts" >nul 2>&1
|
||||
if %errorlevel% == 0 (
|
||||
echo "Conda environment 'xtts' already exists. Deleting it."
|
||||
call "%CONDA_BASE%\condabin\conda.bat" env remove --name xtts --yes
|
||||
)
|
||||
call "%CONDA_BASE%\condabin\conda.bat" create --name xtts --yes
|
||||
call "%CONDA_BASE%\Scripts\activate.bat" xtts
|
||||
call "%CONDA_BASE%\Scripts\pip.exe" install xtts-api-server --user
|
||||
)
|
||||
exit /b
|
||||
|
Loading…
Reference in New Issue
Block a user