From 673239356cb4dd9e0c14a07bbab5f4b558b42b36 Mon Sep 17 00:00:00 2001 From: EillesWan Date: Sun, 21 Nov 2021 14:11:28 +0800 Subject: [PATCH] bug in linux fixes --- msctspt/bugReporter.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/msctspt/bugReporter.py b/msctspt/bugReporter.py index d224024..8cfe2fc 100644 --- a/msctspt/bugReporter.py +++ b/msctspt/bugReporter.py @@ -122,6 +122,12 @@ class version: shutil.rmtree(os.getenv('APPDATA')+'\\Musicreater\\') except: pass; - for i in self.libraries: - print("安装库:"+i) - os.system("python -m pip install "+i+" -i https://pypi.tuna.tsinghua.edu.cn/simple") + for i in self.libraries: + print("安装库:"+i) + os.system("python -m pip install "+i+" -i https://pypi.tuna.tsinghua.edu.cn/simple") + else: + os.system("sudo apt-get install python3-pip") + for i in self.libraries: + print("安装库:"+i) + os.system("sudo python3 -m pip install "+i+" -i https://pypi.tuna.tsinghua.edu.cn/simple") +