-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsetup.bat
More file actions
60 lines (52 loc) · 1.26 KB
/
setup.bat
File metadata and controls
60 lines (52 loc) · 1.26 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
48
49
50
51
52
53
54
55
56
57
58
59
60
@echo off
echo ==========================================
echo DefaceIT - Setup Script
echo For Windows
echo ==========================================
echo.
python --version >nul 2>&1
if errorlevel 1 (
echo ERROR: Python is not installed or not in PATH
echo Please install Python 3.8 or higher first
echo Visit: https://www.python.org/downloads/
echo.
echo Make sure to check "Add Python to PATH" during installation
pause
exit /b 1
)
echo Python found
echo.
echo Creating virtual environment...
if not exist "venv" (
python -m venv venv
echo Virtual environment created
) else (
echo Virtual environment already exists
)
echo.
echo Activating virtual environment...
call venv\Scripts\activate.bat
echo Virtual environment activated
echo.
echo Upgrading pip...
python -m pip install --upgrade pip --quiet
echo pip upgraded
echo.
echo Installing dependencies...
echo This may take a few minutes...
pip install -r requirements.txt
echo.
if errorlevel 1 (
echo ERROR: Installation failed
echo Please check the error messages above
pause
exit /b 1
)
echo ==========================================
echo Setup Complete!
echo ==========================================
echo.
echo Starting DefaceIT...
echo.
python run.py
pause