我收到消息 'chromedriver.exe' 可执行文件需要在 PATH 中

i got message 'chromedriver.exe' executable needs to be in PATH

我试图让 selenium 与 goorm 一起工作,但它不起作用。 我正在使用云服务 goorm IDE。

from selenium import webdriver
driver = webdriver.Chrome("C:Users/chromedriver.exe")

运行 时,我收到此消息: 'chromedriver.exe' 可执行文件需要在 PATH 中。请参阅 https://sites.google.com/a/chromium.org/chromedri

检查以下内容:

driver = webdriver.Chrome("C:/Users/chromedriver.exe")

Environmental Variable

中的Path中添加chromedriver.exe的路径

如果您正在使用 Windows

  1. 右键单击 My Computer 并转到 Properties
  2. Select Advanced system settings
  3. 转到选项卡 Advanced
  4. 点击Environment Variables
  5. System Variables 部分搜索 Path 变量
  6. 双击它并在其 value
  7. 列表中添加 chromedriver.exe 的路径