From aea1271a94613db74b3cab20ce4507c3947cd02c Mon Sep 17 00:00:00 2001 From: Soulter <37870767+Soulter@users.noreply.github.com> Date: Tue, 18 Apr 2023 21:30:51 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E5=8F=96=E6=B6=88=E7=A8=8B=E5=BA=8F?= =?UTF-8?q?=E5=90=AF=E5=8A=A8=E5=A4=9A=E4=BD=99=E7=9A=84=E4=BE=9D=E8=B5=96?= =?UTF-8?q?=E5=BA=93=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/main.py b/main.py index 3b80d4a55..245a2ce1d 100644 --- a/main.py +++ b/main.py @@ -39,19 +39,19 @@ def check_env(): print("请使用Python3.8运行本项目") input("按任意键退出...") exit() - try: - print("检查依赖库中...") - if os.path.exists('requirements.txt'): - os.system("pip3 install -r requirements.txt") - elif os.path.exists('QQChannelChatGPT'+ os.sep +'requirements.txt'): - os.system('pip3 install -r QQChannelChatGPT'+ os.sep +'requirements.txt') - os.system("clear") - print("安装依赖库完毕...") - except BaseException as e: - print("安装依赖库失败,请手动安装依赖库。") - print(e) - input("按任意键退出...") - exit() + # try: + # print("检查依赖库中...") + # if os.path.exists('requirements.txt'): + # os.system("pip3 install -r requirements.txt") + # elif os.path.exists('QQChannelChatGPT'+ os.sep +'requirements.txt'): + # os.system('pip3 install -r QQChannelChatGPT'+ os.sep +'requirements.txt') + # os.system("clear") + # print("安装依赖库完毕...") + # except BaseException as e: + # print("安装依赖库失败,请手动安装依赖库。") + # print(e) + # input("按任意键退出...") + # exit() # 检查key with open(abs_path+"configs/config.yaml", 'r', encoding='utf-8') as ymlfile: