2022-06-04 14:33:46 +00:00
"""
2022-06-16 19:26:43 +00:00
Install the needed python packages through this script
2022-06-04 14:33:46 +00:00
"""
import os
try :
2022-06-16 19:26:43 +00:00
print ( " Installing Python packages and dependencies from requirements.txt... \n " )
2022-07-09 09:14:18 +00:00
os . system ( ' py -m pip install -r requirements.txt ' if os . name == ' nt ' else ' python3 -m pip install -r requirements.txt ' )
2022-06-16 19:26:43 +00:00
print ( " \n Start pluGET by launching the ' pluGET.py ' file! " )
2022-07-09 09:07:34 +00:00
except Exception as e :
print ( f " Requirements couldn ' t be installed. \n Error message: { e } \n \n Common solution: Check if file ' requirements.txt ' is in the same folder and that Python3 \
2022-06-16 19:26:43 +00:00
and pip is installed ! " )