Show error message on requirements install failure

This commit is contained in:
Shiraz 2022-07-09 10:07:34 +01:00
parent 0e09daae53
commit 526ccf72cb

View File

@ -8,6 +8,6 @@ try:
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')
print("\nStart pluGET by launching the 'pluGET.py' file!")
except:
print("Requirements couldn't be installed. Check if file 'requirements.txt' is in the same folder and that Python3\
except Exception as e:
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!")