Installing Selenium on Raspberry Pi on Python

一个人想着一个人 提交于 2019-12-11 16:53:01

问题


I have a new Raspberry Pi 3 Model B. I am using the latest version of Raspbian.

I have been trying to set up Selenium on Python but have failed. There is little/no guidance on how to achieve this on the Pi.

I tried installing Selenium via pip, which worked but when I ran the following, I got an error.

from selenium import webdriver
browser = webdriver.Firefox()

This is the error:

selenium.common.exceptions.WebDriverException: Message: 'geckodriver' 
executable needs to be in PATH. 

There seem to be solutions to this on other stackoverflow pages but none have solved my problem so far.

Could anyone give me any guidance as to how they have done it?

Any help is much appreciated!

来源:https://stackoverflow.com/questions/48139340/installing-selenium-on-raspberry-pi-on-python

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!