'Webdrivers' executable may have wrong permissions. Please see https://sites.google.com/a/chromium.org/chromedriver/home

前端 未结 11 775
醉梦人生
醉梦人生 2020-11-22 16:23

I\'ve looked around checked both documentations and have found no answer.

I\'ve been trying to use InstaPy a instagram api for python. After failing with multiple er

11条回答
  •  忘掉有多难
    2020-11-22 17:10

    You just have to add

    /chromedriver.exe

    at the end of the path like this:

    driver = webdriver.Chrome('C:/Users/User/Downloads/chromedriver_win32/chromedriver.exe')

    Note: If you copy the path from "File Explorer" you will get:

    C:\Users\User\Downloads\chromedriver_win32

    You will need to use double backslashes like this:

    C:\\Users\\User\\Downloads\\chromedriver_win32

    so you don't get a syntax error. Or you can just use forward slashes.

提交回复
热议问题