chromedriver-autoinstaller is a Python library that automatically downloads and installs the appropriate Chromedriver executable for the currently installed version of Google Chrome on your system. It supports Linux, MacOS, and Windows operating systems. The current version is 0.6.4 and the library is actively maintained, with a recent release in January 2024.
pip install chromedriver-autoinstallerVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to use `chromedriver-autoinstaller` to ensure the correct Chromedriver is available, then initializes a Selenium WebDriver for Chrome, navigates to Google, prints the page title, and quits.
Update to `chromedriver-autoinstaller` version `0.6.2` or newer. These versions implement the updated driver location logic.
Configure your environment to run Chrome as a regular user instead. If absolutely necessary (e.g., in some containerized environments), `ChromeOptions().add_argument('--no-sandbox')` can be used, but this is an unsupported and potentially risky workaround.Ensure all necessary Python runtime and SSL DLLs are explicitly included in your application's build process or environment setup for bundled applications.
Always confirm the exact package name `chromedriver-autoinstaller` when installing to ensure you are using the intended library.
pip install chromedriver-autoinstaller
Ensure you have `import chromedriver_autoinstaller` and `chromedriver_autoinstaller.install()` at the beginning of your script before creating a `webdriver.Chrome()` instance.
Ensure Google Chrome is installed and updated. Call `chromedriver_autoinstaller.install()` to force it to re-download the correct ChromeDriver. If issues persist, consider using `chromedriver_autoinstaller.install(True)` for a clean install or checking for alternative versions if your Chrome is a non-standard build.
Verify that Google Chrome is correctly installed on your system. If it is, ensure it's accessible from your environment's PATH. If running in a headless environment, confirm Chrome is installed there.