I've spent about 6 hours trying to install Selenium. I think my various errors stem from version compatibility or lacking prerequisite packages. I am using Debian 9 on a OpenVZ VPS from servercheap.net. This VPS doesn't come with many packages preinstalled, so I have to install things like python manually. Can someone write a step-by-step process for installing Python3 selenium on a fresh rebuild of Debian 9? Please specify which webdriver and version numbers too.
As for the errors I've gotten, here are a few:
Message: 'geckodriver' executable needs to be in PATH
Message: invalid argument: can't kill an exited process
Message: Process unexpectedly closed with status 1
Message: Service chromedriver unexpectedly exited. Status code was: 127
I want to be able to run the following Python3 script without error:
from selenium import webdriver
browser = webdriver.Firefox() #or webdriver.Chrome()