[英]Selenium WebDriverException: Message: 'chromedriver.exe' executable needs to be in PATH
I realize this is a duplicate, but I've tried all the suggestions made by the other similar posts on this error. 我意识到这是重复的,但是我已经尝试过其他类似帖子针对此错误提出的所有建议。 I'm running Windows 10. 我正在运行Windows 10。
Per this post, they suggest to explicitly state the folder location in my python code. 在这篇文章中,他们建议在我的python代码中明确说明文件夹位置。 I've done that. 我已经做到了。 Error message: "'chromedriver' executable needs to be available in the path" 错误消息:“'chromedriver'可执行文件在路径中必须可用”
Per another post, they say to make sure the environment variable, PATH is pointed correctly. 在另一篇文章中,他们说要确保正确指向环境变量PATH。 Error message: "'chromedriver' executable needs to be available in the path" 错误消息:“'chromedriver'可执行文件在路径中必须可用”
Here are the different ways I tried entering the code: 这是我尝试输入代码的不同方法:
driver = webdriver.Chrome(executable_path='/Users/Admin/Documents/Python/chromedriver.exe') #SyntaxError: invalid character in identifier
and 和
driver = webdriver.Chrome('/Users/Admin/Documents/Python/chromedriver.exe')
also added chromesetup.exe to the C:\\Python36-32\\Scripts folder and calling 还将chromesetup.exe添加到C:\\ Python36-32 \\ Scripts文件夹并调用
driver= webdriver.Chrome()
I have also restarted my computer and restarted Pycharm. 我还重新启动了计算机并重新启动了Pycharm。 Any other suggestions? 还有其他建议吗?
driver = webdriver.Chrome(executable_path = os.path.abspath(“ ChromeSetup”),options = chrome_options)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.