From 826daa518e600b0a34eb453eab94b4feaf74567b Mon Sep 17 00:00:00 2001 From: jiajiu123 <1771663559@qq.com> Date: Sun, 9 Mar 2025 20:02:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BD=93=E8=99=9A=E6=8B=9F=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E5=AD=98=E5=9C=A8=E6=97=B6=E8=B7=B3=E8=BF=87=E5=88=9B?= =?UTF-8?q?=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- run.bat | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/run.bat b/run.bat index c0fd81324..659a7545a 100644 --- a/run.bat +++ b/run.bat @@ -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 \ No newline at end of file