From e60e5fa44d027d229b6dff8cb2e6b3b1b0a3eea4 Mon Sep 17 00:00:00 2001 From: a838557765 <838557765@qq.com> Date: Mon, 20 Jul 2020 16:45:25 +0800 Subject: [PATCH] Update Update setup_macos.py --- Code/setup_macos.py | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 Code/setup_macos.py diff --git a/Code/setup_macos.py b/Code/setup_macos.py deleted file mode 100644 index b07ebbc..0000000 --- a/Code/setup_macos.py +++ /dev/null @@ -1,31 +0,0 @@ -import os -import sys -import time -flag=0x00 -for x in range(1,4): - if os.system("python3 -m pip install --upgrade pip") == 0: - flag=flag | 0x01 - break -for x in range(1,4): - if os.system("pip3 install PyQt5") == 0: - flag=flag | 0x02 - break -for x in range(1,4): - if os.system("pip3 install Pillow") == 0: - flag=flag | 0x04 - break -for x in range(1,4): - if os.system("pip3 install opencv-python-headless") == 0: - flag=flag | 0x08 - break -for x in range(1,4): - if os.system("pip3 install numpy") == 0: - flag=flag | 0x10 - break -if flag==0x1f: - os.system("pip3 list") - print("\nAll libraries installed successfully") -else: - print ("\nSome libraries have not been installed yet. Please run 'python3 setup_macos.py' again") - -