-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall_deps.bat
More file actions
55 lines (44 loc) · 1.28 KB
/
install_deps.bat
File metadata and controls
55 lines (44 loc) · 1.28 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
@echo off
chcp 65001 >nul
REM MuMuAINovel dependency installation script
echo ========================================
echo Installing MuMuAINovel dependencies...
echo ========================================
REM Check Python
python --version >nul 2>&1
if errorlevel 1 (
echo [ERROR] Python not found, please install Python 3.8+
pause
exit /b 1
)
echo [OK] Python is installed
REM Change to backend directory
cd /d "%~dp0backend"
REM Check requirements.txt
if not exist "requirements.txt" (
echo [ERROR] requirements.txt not found
pause
exit /b 1
)
echo [OK] Found requirements.txt
REM Install dependencies
echo Installing dependencies, please wait...
pip install -r requirements.txt
if errorlevel 1 (
echo [ERROR] Dependency installation failed
echo Trying to use Chinese mirror source...
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
)
if errorlevel 1 (
echo [ERROR] Dependency installation still failed, please check network connection
pause
exit /b 1
)
echo [OK] Dependencies installed successfully
echo.
echo ========================================
echo Next steps:
echo 1. Run start.bat to start application
echo 2. Visit http://localhost:8000
echo ========================================
pause