Fix activating venv

This commit is contained in:
litagin02
2024-03-16 17:26:05 +09:00
parent f2cc879603
commit 242e7ee2f0
4 changed files with 26 additions and 6 deletions

View File

@@ -97,6 +97,14 @@ if !errorlevel! neq 0 ( popd & exit /b !errorlevel! )
@REM Style-Bert-VITS2フォルダに移動
pushd Style-Bert-VITS2
echo --------------------------------------------------
echo Activating the virtual environment...
echo --------------------------------------------------
echo Executing: call ".\venv\Scripts\activate.bat"
pause
call ".\venv\Scripts\activate.bat"
if !errorlevel! neq 0 ( popd & exit /b !errorlevel! )
echo --------------------------------------------------
echo Installing dependencies...
echo --------------------------------------------------

View File

@@ -85,7 +85,7 @@ pause
git clone %REPO_URL%
if !errorlevel! neq 0 ( pause & popd & exit /b !errorlevel! )
@REM Pythonのセットアップ、仮想環境が有効化されて戻って来る
@REM Pythonのセットアップ
echo --------------------------------------------------
echo Setting up Python environment...
echo --------------------------------------------------
@@ -97,6 +97,14 @@ if !errorlevel! neq 0 ( popd & exit /b !errorlevel! )
@REM Style-Bert-VITS2フォルダに移動
pushd Style-Bert-VITS2
echo --------------------------------------------------
echo Activating the virtual environment...
echo --------------------------------------------------
echo Executing: call ".\venv\Scripts\activate.bat"
pause
call ".\venv\Scripts\activate.bat"
if !errorlevel! neq 0 ( popd & exit /b !errorlevel! )
echo --------------------------------------------------
echo Installing PyTorch...
echo --------------------------------------------------

View File

@@ -106,7 +106,7 @@ if not exist %VENV_DIR%\ (
)
echo --------------------------------------------------
echo Actibating virtual environment...
echo Activating virtual environment...
echo --------------------------------------------------
echo Executing: call "%VENV_DIR%\Scripts\activate.bat"
pause

View File

@@ -43,13 +43,17 @@ if !errorlevel! neq 0 ( pause & popd & exit /b !errorlevel! )
@REM 仮想環境のpip requirements.txtを更新
echo --------------------------------------------------
echo Updating dependencies...
echo Activating virtual environment...
echo --------------------------------------------------
@REM 仮想環境を有効化
call .\venv\Scripts\activate.bat
echo Executing: call ".\venv\Scripts\activate.bat"
pause
call ".\venv\Scripts\activate.bat"
if !errorlevel! neq 0 ( pause & popd & exit /b !errorlevel! )
echo --------------------------------------------------
echo Updating dependencies...
echo --------------------------------------------------
echo Executing: pip install -U -r requirements.txt
pip install -U -r requirements.txt
if !errorlevel! neq 0 ( pause & popd & exit /b !errorlevel! )