try, except를 활용해서 import와ModuleNotFoundError시에 install하기 try: from matplotlib import pyplot as plt except ModuleNotFoundError: import pip pip.main(['install', 'matplotlib']) try: from matplotlib import pyplot as plt except ModuleNotFoundError: time.sleep(2) from matplotlib import pyplot as plt try: import numpy as np except ModuleNotFoundError: import pip pip.main(['install', 'numpy']) try: impo..