Merge pull request #138 from jiajiu123/debug

fix: 当虚拟环境存在时跳过创建
pull/144/head
jiajiu123 2025-03-09 20:03:35 +08:00 committed by GitHub
commit 808627213a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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