-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path安装依赖并启动.bat
More file actions
37 lines (31 loc) · 838 Bytes
/
Copy path安装依赖并启动.bat
File metadata and controls
37 lines (31 loc) · 838 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
32
33
34
35
36
37
@echo off
chcp 65001 >nul 2>&1
title MingLi Engine
echo ========================================
echo MingLi Prediction Engine
echo ========================================
echo.
cd /d "%~dp0"
echo [1/3] Checking Python...
python --version >nul 2>&1
if errorlevel 1 (
echo ERROR: Python not found. Please install Python 3.9+
echo Download: https://www.python.org/downloads/
pause
exit /b 1
)
echo [2/3] Installing dependencies...
pip install -r mingli_engine/requirements.txt -q
if errorlevel 1 (
echo WARNING: Some dependencies failed to install, trying to continue...
)
echo [3/3] Starting server...
echo.
echo ========================================
echo Server: http://localhost:18766
echo Press Ctrl+C to stop
echo ========================================
echo.
cd mingli_engine
python main.py
pause