-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall_only.bat
More file actions
47 lines (41 loc) · 1.13 KB
/
Copy pathinstall_only.bat
File metadata and controls
47 lines (41 loc) · 1.13 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
chcp 65001 >nul
title Install Dependencies
echo.
echo ===============================================================
echo Installing Dependencies for Character Card Duplicate Finder
echo ===============================================================
echo.
python --version >nul 2>&1
if errorlevel 1 (
echo [ERROR] Python not found!
pause
exit /b 1
)
REM Check Python version (3.10+ required)
python -c "import sys; sys.exit(0 if sys.version_info >= (3, 10) else 1)" >nul 2>&1
if errorlevel 1 (
echo [ERROR] Python 3.10 or higher is required!
echo Your current version:
python --version
echo Download from: https://www.python.org/downloads/
pause
exit /b 1
)
echo [INFO] Installing dependencies...
echo.
pip install -r requirements.txt
if errorlevel 1 (
echo.
echo [ERROR] Failed to install dependencies!
pause
exit /b 1
)
echo.
echo ============================================================
echo [OK] All dependencies installed successfully!
echo ============================================================
echo.
echo You can now run 'run.bat' to start the application.
echo.
pause