fix: 当虚拟环境存在时跳过创建

pull/138/head
jiajiu123 2025-03-09 20:02:59 +08:00
parent f11f5e76a1
commit 826daa518e
1 changed files with 7 additions and 3 deletions

10
run.bat
View File

@ -1,6 +1,10 @@
@ECHO OFF
chcp 65001
python -m venv venv
call venv\Scripts\activate.bat
pip install -i https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple --upgrade -r requirements.txt
if not exist "venv" (
python -m venv venv
call venv\Scripts\activate.bat
pip install -i https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple --upgrade -r requirements.txt
) else (
call venv\Scripts\activate.bat
)
python run.py