• <noscript id="ecgc0"><kbd id="ecgc0"></kbd></noscript>
    <menu id="ecgc0"></menu>
  • <tt id="ecgc0"></tt>

    Python3 webdriver.Chrome()報錯

    Python3 webdriver.Chrome()報錯

    東西/原料

    • Python3.7
    • chromedriver

    方式/步調

    1. 1

      起首,打開py文件,如圖,有如下代碼。

      import time

      from selenium import webdriver

      driver = webdriver.Chrome()

    2. 2

      然后運行py文件,run——run module

    3. 3

      若是這樣就會提醒報錯FileNotFoundError: [WinError 2]系統找不到指定文件,如圖。

    4. 4

      那么,從網上下載一個chromedriver.exe文件,放在Python的根目次下一般在:C:\Users\Administrator\AppData\Local\Programs\Python\Python37-32

    5. 5

      然后,再運行run——run module

    6. 6

      這樣就不會報錯了。

      END

    注重事項

    • tips1:小我原創,請勿轉載!
    • tips2:圖文連系查看!
    • 發表于 2020-02-25 20:00
    • 閱讀 ( 2677 )
    • 分類:其他類型

    你可能感興趣的文章

    相關問題

    0 條評論

    請先 登錄 后評論
    聯系我們:uytrv@hotmail.com 問答工具
  • <noscript id="ecgc0"><kbd id="ecgc0"></kbd></noscript>
    <menu id="ecgc0"></menu>
  • <tt id="ecgc0"></tt>
    久久久久精品国产麻豆