Requirements
Before installing Undetected, ensure your system meets these requirements:- Python: Version 3.10 or higher (< 4.0)
- Chrome/Chromium: A compatible Chromium-based browser installed on your system
- pip: Python package installer
Undetected automatically detects your installed Chrome version and downloads the matching ChromeDriver. You don’t need to manually install ChromeDriver.
Install via pip
Install Undetected using pip:selenium(^4.39.0) - Core WebDriver functionalityrequests(^2.32.3) - HTTP library for downloading ChromeDriverwebsockets(^15.0) - WebSocket support for CDP communicationpackaging(^24.0) - Version parsing utilities
Verify Installation
After installation, verify that Undetected is working correctly:First Run
On first run, Undetected will automatically download and patch the appropriate ChromeDriver version for your browser. This may take a few moments.
Binary Caching
The patched ChromeDriver is cached in your system’s application data directory for reuse:
- Windows:
%APPDATA%/roaming/undetected - macOS:
~/Library/Application Support/undetected - Linux:
~/.local/share/undetected
Development Installation
If you want to contribute to Undetected or run from source:Troubleshooting
Chrome Not Found
If you get an error about Chrome not being found, ensure Chrome or a Chromium-based browser is installed on your system. You can specify a custom browser path:Permission Errors on Linux
If running as root on Linux, Chrome requires the--no-sandbox flag, which Undetected enables by default. However, it’s recommended to run as a non-root user when possible.
ChromeDriver Download Fails
If ChromeDriver download fails due to network issues:- Check your internet connection
- Verify you can access https://chromedriver.chromium.org
- Consider using a custom driver path with pre-downloaded ChromeDriver:
Version Compatibility Issues
Ensure your Chrome version is up to date. Very old Chrome versions may have compatibility issues. You can check your Chrome version by visitingchrome://version in your browser.
Next Steps
Now that Undetected is installed, learn how to use it:Quick Start Guide
Get started with basic usage examples and best practices