hydrus/setup_venv.bat

39 lines
566 B
Batchfile
Raw Normal View History

2022-10-19 20:44:13 +00:00
@ECHO off
IF EXIST "venv\" goto :venv_exists
SET /P ready=If you do not have Python 3 installed yet, check the 'running from source' help. Hit Enter to start.
goto :create
:venv_exists
SET /P Virtual environment will be reinstalled. Hit Enter to start.
2022-10-19 20:44:13 +00:00
echo Deleting old venv...
rmdir /s /q venv
:create
echo Creating new venv...
python -m venv venv
CALL venv\Scripts\activate.bat
python -m pip install --upgrade pip
pip3 install --upgrade wheel
pip3 install -r requirements.txt
CALL venv\Scripts\deactivate.bat
goto :done
2022-10-19 20:44:13 +00:00
:done
SET /P done=Done!