From bf72d5fa27c1e0f18d08d5ecc56a66de425e6f6e Mon Sep 17 00:00:00 2001 From: Soulter <37870767+Soulter@users.noreply.github.com> Date: Sat, 13 May 2023 13:55:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=9C=89=E4=BE=9D?= =?UTF-8?q?=E8=B5=96=E7=9A=84=E6=8F=92=E4=BB=B6=E6=8B=89=E5=8F=96=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/command/command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/command/command.py b/model/command/command.py index a8b09642e..e362caf80 100644 --- a/model/command/command.py +++ b/model/command/command.py @@ -98,7 +98,7 @@ class Command: if os.path.exists(os.path.join(plugin_path, "requirements.txt")): with open(os.path.join(plugin_path, "requirements.txt"), "r", encoding="utf-8") as f: for line in f.readlines(): - pipmain(['install', line.strip()]) + mm = os.system(f"pip3 install {line.strip()}") return True, "插件拉取成功~", "plugin" except BaseException as e: