mirror of
				https://github.com/Neocky/pluGET.git
				synced 2024-04-29 16:12:30 +00:00 
			
		
		
		
	Show error message on requirements install failure
This commit is contained in:
		@@ -8,6 +8,6 @@ try:
 | 
				
			|||||||
    print("Installing Python packages and dependencies from requirements.txt...\n")
 | 
					    print("Installing Python packages and dependencies from requirements.txt...\n")
 | 
				
			||||||
    os.system('py -m pip install -r requirements.txt' if os.name=='nt' else 'pip install -r requirements.txt')
 | 
					    os.system('py -m pip install -r requirements.txt' if os.name=='nt' else 'pip install -r requirements.txt')
 | 
				
			||||||
    print("\nStart pluGET by launching the 'pluGET.py' file!")
 | 
					    print("\nStart pluGET by launching the 'pluGET.py' file!")
 | 
				
			||||||
except:
 | 
					except Exception as e:
 | 
				
			||||||
    print("Requirements couldn't be installed. Check if file 'requirements.txt' is in the same folder and that Python3\
 | 
					    print(f"Requirements couldn't be installed.\nError message: {e}\n\nCommon solution: Check if file 'requirements.txt' is in the same folder and that Python3\
 | 
				
			||||||
         and pip is installed!")
 | 
					         and pip is installed!")
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user