import os from selenium import webdriver chromedriver = "C:Program Files (x86)GoogleChromeApplicationchrome.exe" os.environ["webdriver.chrome.driver"] = chromedriver driver = webdriver.Chrome(chromedriver) driver.quit()