From 2b70eef35bd900a46faba8ad632c5c8ea4552137 Mon Sep 17 00:00:00 2001 From: Soulter <37870767+Soulter@users.noreply.github.com> Date: Mon, 10 Apr 2023 22:40:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=90=AF=E5=8A=A8?= =?UTF-8?q?=E6=97=B6=E7=9A=84=E4=BE=9D=E8=B5=96=E5=BA=93=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E6=B5=81=E7=A8=8B=EF=BC=9B=E4=BC=98=E5=8C=96update=20latest?= =?UTF-8?q?=E6=8C=87=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 2 +- model/command/command.py | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/main.py b/main.py index e834dba0d..3b80d4a55 100644 --- a/main.py +++ b/main.py @@ -44,7 +44,7 @@ def check_env(): if os.path.exists('requirements.txt'): os.system("pip3 install -r requirements.txt") elif os.path.exists('QQChannelChatGPT'+ os.sep +'requirements.txt'): - os.system('QQChannelChatGPT'+ os.sep +'requirements.txt') + os.system('pip3 install -r QQChannelChatGPT'+ os.sep +'requirements.txt') os.system("clear") print("安装依赖库完毕...") except BaseException as e: diff --git a/model/command/command.py b/model/command/command.py index 12e511cda..b5653b4d2 100644 --- a/model/command/command.py +++ b/model/command/command.py @@ -82,11 +82,6 @@ class Command: pash_tag = "QQChannelChatGPT"+os.sep repo.remotes.origin.pull() - try: - os.system("pip3 install -r "+pash_tag+"requirements.txt") - except BaseException as e: - print(str(e)) - py = sys.executable os.execl(py, py, *sys.argv)