-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathsetup.bat
More file actions
35 lines (28 loc) · 859 Bytes
/
setup.bat
File metadata and controls
35 lines (28 loc) · 859 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
@echo off
if exist .venv (
echo Virtual environment already exists. Removing and creating a new one...
rmdir /s /q .venv
)
echo Creating Python virtual environment...
python -m venv .venv
if not exist .venv (
echo Error: Failed to create virtual environment.
echo Please ensure Python is installed and in your PATH.
goto :end
)
echo Activating virtual environment...
.venv\Scripts\activate.bat
echo Installing dependencies...
python -m pip install .
if errorlevel 1 (
echo Error: Failed to install dependencies.
echo Please check the error messages above.
) else (
echo ================================================
echo Setup complete! Please run the following command to activate your environment:
echo .venv\Scripts\activate.bat
echo ================================================
)
:end
echo.
pause