Files
Document_translator_V2_nodo…/install_python_dependencies.bat
beabigegg 4cace93934 NO docker
2025-10-02 18:50:53 +08:00

41 lines
1005 B
Batchfile
Raw Permalink 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
REM ============================================
REM PANJIT Document Translator V2
REM Python 後端依賴安裝腳本 (Windows)
REM ============================================
echo ========================================
echo PANJIT Document Translator V2
echo Python 依賴安裝程式
echo ========================================
echo.
REM 檢查 Python 是否存在
python --version >nul 2>&1
if %errorlevel% neq 0 (
echo [錯誤] 找不到 Python請先安裝 Python 3.8 或以上版本
pause
exit /b 1
)
echo [1/4] 檢查 Python 版本...
python --version
echo.
echo [2/4] 升級 pip...
python -m pip install --upgrade pip
echo.
echo [3/4] 安裝 Python 套件依賴...
pip install -r requirements.txt
echo.
echo [4/4] 驗證安裝...
python -c "import flask; import celery; import redis; print('核心套件安裝成功!')"
echo.
echo ========================================
echo Python 依賴安裝完成!
echo ========================================
pause