Anaconda selenium and Chrome

  1. Download latest chromedriver
  2. Update Chrome itself
  3. In your code

from selenium import webdriver driver_path = '/path to chromedriver.exe/' driver = webdriver.Chrome(driver_path) driver.get('somewebsite')


The easiest would be to install chrome-driver via anaconda (especially when running on a machine where you don't have permissions to install chrome-driver from .deb package)

conda install -c conda-forge python-chromedriver-binary 

(updated based on comment from bgoodr (https://stackoverflow.com/users/257924/bgoodr) - please vote his comment below ).


The simplest solution is to install chromedriver as suggested by @bgodr:

conda install -c conda-forge python-chromedriver-binary

Then at the top of your code, add the following import statement to update your PATH variable appropriately:

import chromedriver_binary