without haste but without rest

[python] 모듈 미설치 예외처리 샘플 본문

ProgrammingLanguage/Python

[python] 모듈 미설치 예외처리 샘플

JinungKim 2021. 1. 4. 19:50
try:
    from selenium import webdriver

except ImportError:
    print("Trying to Install required module: selenium\n")
    os.system('python -m pip install selenium')
    from selenium import webdriver

 

Comments