首页 > 代码库 > python selenium error “Geckodriver executable needs to be in PATH”

python selenium error “Geckodriver executable needs to be in PATH”

ERROR:

Geckodriver executable needs to be in PATH


我用的是ubuntu 16.04

解决办法:


  1. 下载    geckodriver  (github下载链接)

  2. 解压缩 tar zxvf  geckodriver-v0.15.0-linux64.tar.gz  ##解压出来的是一个单文件

  3. ##执行  copy geckodriver  /usr/bin


再次运行无此错误


本文出自 “净空蓝星” 博客,请务必保留此出处http://jingkonglanxing.blog.51cto.com/1152128/1904514

python selenium error “Geckodriver executable needs to be in PATH”