import os libs = {"numpy", "whell", "flask"} try: for lib in libs: os.system("pip install " + lib) print("Successful") except: print("Failed")