-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.bat
34 lines (29 loc) · 982 Bytes
/
install.bat
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
@echo off
echo Setting up the environment...
REM Check if Python is installed
python --version >nul 2>&1
if %errorlevel% neq 0 (
echo Python is not installed. Please install Python 3.7 or later and add it to your PATH.
exit /b 1
)
REM Check if the virtual environment already exists
if exist venv (
echo Virtual environment already exists. Skipping creation.
) else (
REM Create a virtual environment if it doesn't exist
echo Creating a virtual environment with Python 3.11...
python3.11 -m venv venv
REM Verify Python version compatibility
)
REM Activate the virtual environment
echo Activating the virtual environment 'venv' with Python 3.11...
call venv\Scripts\activate.bat
REM Install required packages from requirements.txt
if exist requirements.txt (
echo Installing required packages...
pip install -r requirements.txt
) else (
echo requirements.txt not found. Skipping package installation.
)
echo Setup complete!
timeout /t 30