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
|
|
|
|
|
2022-11-02 04:17:15 +00:00
|
|
|
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
|
|
|
|
|
2022-11-02 04:17:15 +00:00
|
|
|
goto :done
|
2022-10-19 20:44:13 +00:00
|
|
|
|
|
|
|
:done
|
2022-11-02 04:17:15 +00:00
|
|
|
|
|
|
|
SET /P done=Done!
|
|
|
|
|