python+selenium之——错误:selenium.common.exceptions.WebDriverException: Message: ‘geckodriver’ executable needs to be in PATH.

此时,需要自己配置geckodriver

  1. 下载geckodriver,地址:https://github.com/mozilla/geckodriver/releases
  2. 下载后解压得到geckodriver.exe
  3. 将geckodriver.exe放到Firefox的安装目录下
  4. 将火狐安装目录添加到环境变量path中
  5. 重启IDLE

 

posted @ 2019-01-11 11:21  走更多的路  阅读(1146)  评论(0编辑  收藏  举报