Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chromedriver is not being found in python, windows Anaconda

I have freshly installed Chrome on my pc. I have installed Anaconda. I have tried putting Chrome in the Anaconda directory wtih Chrome.

I've got a clean Anaconda, I've installed chromedriver through Anaconda, as well as downloaded it and tried it through Cmd. I also have tried just about every relevant folder I can think of but it just can't seem to find path. I've deleted every visible Chromedriver in case it's getting that.

Any idea on how to fix this issue as I've spent the better half of 4 hours attempting to get Python to stop creating issues.

The last time I did this was 4 months ago and I remember a similar headache.

Is there a set directory I am overlooking where chromedriver must go or you shall suffer the fate of

selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH

for all eternity


1 Answers

You need to specify the path of the executable.

driver = webdriver.Chrome(executable_path=r"C:\Chrome\chromedriver.exe")
like image 58
a2mky Avatar answered Dec 14 '25 02:12

a2mky



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!