Project02/AIGC/SetupCommand.bat
2025-06-05 19:55:37 +08:00

13 lines
360 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 1. 创建虚拟环境名称为AIGC
python -m venv AIGC
REM 2. 激活虚拟环境(路径需与创建的名称一致)
call AIGC\Scripts\activate.bat
REM 3. 安装依赖需确保requirements.txt在相同目录
pip install -r requirements.txt
REM 4. 暂停并显示完成提示
echo 环境配置完成!按任意键退出...
pause