program/start.bat

38 lines
831 B
Batchfile
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@echo off
chcp 65001 >nul
echo ============================================
echo 神东煤炭综采工作面数据管理与AI分析系统
echo ============================================
echo.
REM 检查Python是否安装
python --version >nul 2>&1
if errorlevel 1 (
echo [错误] 未检测到Python请先安装Python 3.8+
pause
exit /b 1
)
echo [提示] Python 已安装
echo.
REM 检查依赖
echo [提示] 正在安装/更新依赖包,请耐心等待...
call pip install -r requirements.txt
if errorlevel 1 (
echo.
echo [错误] 依赖安装失败,请手动执行: pip install -r requirements.txt
pause
exit /b 1
)
echo.
echo [成功] 依赖检查完成
echo.
REM 启动服务
echo [提示] 启动Web服务...
echo [提示] 访问地址: http://localhost:5000
echo.
python app.py
pause