python-3.x - 协作实验室 : chromedriver is not included in PATH

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

在安装selenium模块并解压chromedriver_win32.zip后,我尝试在colab上练习selenium模块。我打字,

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”消息来处理这种情况。我该怎么办?

最佳答案

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

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

enter image description here

enter image description here

关于python-3.x - 协作实验室 : chromedriver is not included in PATH,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52176133/

相关文章:

google-chrome - 升级到 chrome 57 所需的 chromedriver 2.28 后 selenium 出现奇怪的错误

python - 如何在 pandas 数据框中的第二行添加列标题?

Python:如果 3.4 是默认值,如何访问 3.3?

java - 如何在Windows 8机器上正确设置java路径?

ios - 遵循 SKAction 的路径不起作用

c# - 如何避免使用 selenium 在 chrome 自动化中弹出 'This type of file can harm your computer'

webdriver - Puppeteer 正在下载无法拦截或停止的未经请求的文件

Python:any() 意外性能

python - 在 python 3.6 中安装 GDAL

python-3.x - python 中奇怪的无效语法错误