This question already has an answer here:
I use Selenium in Python, I tried to run the webdriver function:
default_browser = webdriver.Firefox()
WebDriverException: Message: 'geckodriver' executable needs to be in PATH.
geckodriver in this site: https://github.com/mozilla/geckodriver
But how to install in Ubuntu 16.04 and can I fix this?