Update
Update setup_macos.py
This commit is contained in:
		
							parent
							
								
									e60e5fa44d
								
							
						
					
					
						commit
						857f90eea2
					
				
							
								
								
									
										31
									
								
								Code/setup_macos.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								Code/setup_macos.py
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,31 @@ | ||||
| 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==5.13.2") == 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") | ||||
| 
 | ||||
| 
 | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user