'geckodriver' executable needs to be in PATH. firefox selenium driver code example
Example: geckodriver' executable needs to be in path
from selenium import webdriver
driver = webdriver.Firefox(executable_path=r'your\path\geckodriver.exe')
driver.get('http://inventwithpython.com')