Colab:chromedriver不包含在PATH中

时间:2018-09-05 02:10:18

标签: python-3.x path selenium-chromedriver google-colaboratory

在安装硒模块并解压缩了chromedriver_win32.zip之后,我尝试在colab上练习硒模块。我输入,

from selenium import webdriver
driver = webdriver.Chrome()

我收到了诸如标题之类的错误消息,

Message: 'chromedriver' executable needs to be in PATH. Please see 
https://sites.google.com/a/chromium.org/chromedriver/home

但是我找不到任何“ PATH”消息来处理这种情况。我该怎么办?

1 个答案:

答案 0 :(得分:0)

您需要参考:https://sites.google.com/a/chromium.org/chromedriver/getting-started

然后在可执行文件或环境变量中找到路径

enter image description here

enter image description here