ai-business-write/setup_env.bat
2025-12-04 14:41:20 +08:00

26 lines
485 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 创建虚拟环境并安装依赖Windows
echo 创建Python虚拟环境...
python -m venv venv
echo 激活虚拟环境...
call venv\Scripts\activate.bat
echo 安装依赖...
pip install -r requirements.txt
echo 复制环境变量配置文件...
if not exist .env (
copy .env.example .env
echo 请编辑 .env 文件填入你的API密钥
)
echo 完成!
echo 使用以下命令启动服务:
echo venv\Scripts\activate
echo python app.py
pause