简体   繁体   English

'chromedriver' 可执行文件需要在 PATH 中 - Python - Selenium (MAC)

[英]'chromedriver' executable needs to be in PATH - Python - Selenium (MAC)

I keep getting this error:我不断收到此错误:

selenium.common.exceptions.WebDriverException: Message: 'chromedriver.exe' executable needs to be in PATH. selenium.common.exceptions.WebDriverException:消息:“chromedriver.exe”可执行文件需要在 PATH 中。 Please see https://chromedriver.chromium.org/home请参阅https://chromedriver.chromium.org/home

My Script: (MAC)我的脚本:(MAC)

from selenium import webdriver

PATH='~ ABC$ /Users/ABC/Desktop/Chromedriver/chromedriver.exe'
driver = webdriver.Chrome(PATH)
driver.get("https://google.com")

What should I do?我应该怎么办? The Path is okay.路径没问题。 I though there is something wrong with the format so I added ".exe" to file, but I am getting the same issue.我虽然格式有问题,所以我在文件中添加了“.exe”,但我遇到了同样的问题。

Note: The browser and package version are the same (96)注:浏览器和package版本相同(96)

PATH should contain the Folder Path to your driver. PATH 应包含驱动程序的文件夹路径。

Having '~ ABC' in your path makes it look for something in the ~ ABC file which does not exsist as a parent file to /Users/在你的路径中有'~ ABC'使它在~ ABC文件中查找不作为/Users/的父文件存在的东西

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Python / Selenium - “chromedriver”可执行文件需要在路径中 - Python / Selenium - “chromedriver” executable needs to be in a PATH Mac 上的 Selenium in Python - Geckodriver 可执行文件需要在 PATH 中 - Selenium in Python on Mac - Geckodriver executable needs to be in PATH 带有 Mac 的 Python + 浏览器:错误 - 'chromedriver' 可执行文件需要在 PATH 中 - Python + Browser with Mac: Error - 'chromedriver' executable needs to be in PATH 在 Selenium/Python 中出错 - chromedriver 可执行文件需要在 PATH 中 - Getting Error in Selenium/Python - chromedriver executable needs to be in PATH Headless Python Selenium 显示错误 'chromedriver' 可执行文件需要在 PATH 中 - Headless Python Selenium Shows Error 'chromedriver' executable needs to be in PATH 'chromedriver_mac' 可执行文件需要在 PATH 中 - 'chromedriver_mac' executable needs to be in PATH WebDriverException:消息:“chromedriver”可执行文件需要在 PATH 中,同时通过 Selenium Chromedriver python 设置 UserAgent - WebDriverException: Message: 'chromedriver' executable needs to be in PATH while setting UserAgent through Selenium Chromedriver python 'chromedriver' 可执行文件需要在 Python Django 的 PATH 中 - 'chromedriver' executable needs to be in PATH in Python Django chromedriver 的可执行文件需要在 PATH 中 - chromedriver' executable needs to be in PATH 消息:在Web服务器上执行python硒时,'chromedriver'可执行文件需要位于PATH中 - Message: 'chromedriver' executable needs to be in PATH while executing python selenium on web server
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM