-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.bat
More file actions
31 lines (27 loc) · 797 Bytes
/
setup.bat
File metadata and controls
31 lines (27 loc) · 797 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
@echo off
echo Setting up Remote Keyboard Environment...
REM Check for Python
python --version >nul 2>&1
if %errorlevel% neq 0 (
echo Python not found. Installing via Winget...
winget install -e --id Python.Python.3.12 --scope user --accept-package-agreements --accept-source-agreements
if %errorlevel% neq 0 (
echo Failed to install Python. Please install manually.
pause
exit /b 1
)
echo Python installed. Please restart this script to pick up the new PATH.
pause
exit /b 0
)
REM Create Virtual Environment
if not exist "venv" (
echo Creating virtual environment...
python -m venv venv
)
REM Install Dependencies
echo Installing dependencies...
call venv\Scripts\activate
pip install -r requirements.txt
echo Setup Complete!
pause