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)