Python - Selenium in Ubuntu OSError: [Errno 20] Not a directory

后端 未结 5 1801
梦毁少年i
梦毁少年i 2020-12-03 11:01

After installing Selenium in Ubuntu and adding geckodriver to path I get this error when I run

from selenium import webdriver

driver = webdriver.Firefox()
         


        
5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-03 11:18

    In addition to the provided answers, there is also this option where you can copy the driver to /usr/bin:

    sudo cp geckodriver /usr/bin 
    

提交回复
热议问题