-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.bat
More file actions
47 lines (39 loc) · 1.03 KB
/
setup.bat
File metadata and controls
47 lines (39 loc) · 1.03 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
@echo off
echo ========================================
echo Virtual Assistant Buddy - Setup
echo ========================================
echo.
REM Check if Python is installed
python --version >nul 2>&1
if %ERRORLEVEL% NEQ 0 (
echo ERROR: Python is not installed or not in PATH
echo Please install Python 3.8 or higher
pause
exit /b 1
)
echo Python found. Creating virtual environment...
echo.
REM Create virtual environment if it doesn't exist
if not exist "envjarvis" (
python -m venv envjarvis
echo Virtual environment created.
) else (
echo Virtual environment already exists.
)
REM Activate virtual environment
call envjarvis\Scripts\activate.bat
echo.
echo Installing/Upgrading pip...
python -m pip install --upgrade pip
echo.
echo Installing dependencies from requirements.txt...
pip install -r requirements.txt
echo.
echo ========================================
echo Setup Complete!
echo ========================================
echo.
echo To start the assistant, run: start.bat
echo.
deactivate
pause