I have this to import all modules if they dont exist, the thing is that even if i have them it also behaves has if i dont, what am i doing wrong?
listimport=["request","shutil","shutil","styless","time","tkinter","openpyxl","html","datetime","importlib","string",
"easygui","bs4","webbrowser","glob","tarfile","webbrowser","pathlib","platform","subprocess","tkinterweb",
"jira","numpy","matplotlib","calendar","sys","math","math","parser","pyautogui","dateutil","xlwt"]
for x_imp in listimport:
try:
import x_imp
except ImportError as e:
os.system('pip install ' + x_imp)
this always tries to install all modules even if they already exist, any ideas?