guoyu/Test/python/国内镜像安装.bat
2025-12-11 23:28:07 +08:00

41 lines
1007 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
title Whisper 国内镜像快速安装
echo ========================================
echo 使用国内镜像安装 Whisper 依赖
echo ========================================
echo.
cd /d "%~dp0"
echo 使用清华大学镜像源,速度更快!
echo.
echo [1/4] 安装 PyTorch (CPU版)...
pip install torch torchvision torchaudio -i https://pypi.tuna.tsinghua.edu.cn/simple
echo.
echo [2/4] 安装 Whisper...
pip install openai-whisper -i https://pypi.tuna.tsinghua.edu.cn/simple
echo.
echo [3/4] 安装 Flask 和 Flask-CORS...
pip install flask flask-cors -i https://pypi.tuna.tsinghua.edu.cn/simple
echo.
echo [4/4] 安装其他依赖...
pip install numpy numba -i https://pypi.tuna.tsinghua.edu.cn/simple
echo.
echo ========================================
echo ✅ 安装完成!
echo ========================================
echo.
echo 现在可以启动服务:
echo python whisper_server.py
echo.
echo 或双击运行启动Whisper服务.bat
echo.
pause