Pip install on posix using python3 -m

as per the official documentation:
packaging.python.org/en/latest/tutorials/installing-packages/#id22
This commit is contained in:
Shiraz 2022-07-09 10:14:18 +01:00
parent 526ccf72cb
commit 18e012540c

View File

@ -6,7 +6,7 @@ import os
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')
os.system('py -m pip install -r requirements.txt' if os.name=='nt' else 'python3 -m pip install -r requirements.txt')
print("\nStart pluGET by launching the 'pluGET.py' file!")
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\