chromedriver

raw JSON →
2.24.1 verified Sat May 09 auth: no python deprecated

A simple tool for downloading and managing chromedriver binaries for Selenium. It automates downloading the correct version for your Chrome browser. Current version: 2.24.1. Released sporadically; no active maintenance since 2020.

pip install chromedriver
error ModuleNotFoundError: No module named 'chromedriver'
cause Installed the wrong package? The correct import is from webdriver_manager.
fix
Use 'from webdriver_manager.chrome import ChromeDriverManager' after installing webdriver-manager.
error ImportError: cannot import name 'ChromeDriverManager' from 'chromedriver'
cause The 'chromedriver' package does not export ChromeDriverManager.
fix
Install and import from webdriver-manager: pip install webdriver-manager, then from webdriver_manager.chrome import ChromeDriverManager.
deprecated The 'chromedriver' library is no longer maintained. Use 'webdriver-manager' instead.
fix pip install webdriver-manager
breaking This library downloads chromedriver to a fixed path, which may cause permission errors if run without admin rights.
fix Use webdriver-manager which handles permissions correctly.
gotcha The library does not automatically update chromedriver for new Chrome versions. You must manually run the tool again.
fix Migrate to webdriver-manager which caches and auto-updates.

Quickstart using webdriver-manager (recommended replacement) to download chromedriver automatically.

from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager

driver = webdriver.Chrome(ChromeDriverManager().install())
driver.get('https://www.google.com')
print(driver.title)
driver.quit()