gpt4 book ai didi

python - ModuleNotFoundError : No module named 'webdriver_manager' error even after installing webdrivermanager

转载 作者:行者123 更新时间:2023-12-03 15:18:43 27 4
gpt4 key购买 nike

我已经在我的 上安装了 webdrivermanager系统

C:\Users\username>pip install webdrivermanager
Requirement already satisfied: webdrivermanager in c:\python\lib\site-packages (0.8.0)
Requirement already satisfied: lxml in c:\python\lib\site-packages (from webdrivermanager) (4.5.1)
Requirement already satisfied: requests in c:\python\lib\site-packages (from webdrivermanager) (2.20.1)
Requirement already satisfied: tqdm in c:\python\lib\site-packages (from webdrivermanager) (4.46.1)
Requirement already satisfied: appdirs in c:\python\lib\site-packages (from webdrivermanager) (1.4.4)
Requirement already satisfied: BeautifulSoup4 in c:\python\lib\site-packages (from webdrivermanager) (4.6.0)
Requirement already satisfied: certifi>=2017.4.17 in c:\python\lib\site-packages (from requests->webdrivermanager) (2018.11.29)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in c:\python\lib\site-packages (from requests->webdrivermanager) (3.0.4)
Requirement already satisfied: idna<2.8,>=2.5 in c:\python\lib\site-packages (from requests->webdrivermanager) (2.7)
Requirement already satisfied: urllib3<1.25,>=1.21.1 in c:\python\lib\site-packages (from requests->webdrivermanager) (1.23)
仍然每当我尝试使用 webdrivermanager 时,我都会遇到错误。
  • 代码块:
    from selenium import webdriver
    from webdriver_manager.chrome import ChromeDriverManager

    driver = webdriver.Chrome(executable_path=ChromeDriverManager().install())
    driver.get('https://www.google.com/')
  • 控制台输出:
    C:\Users\username\Desktop\Debanjan\PyPrograms>webdriverManagerChrome.py
    Traceback (most recent call last):
    File "C:\Users\username\Desktop\Debanjan\PyPrograms\webdriverManagerChrome.py", line 2, in <module>
    from webdriver_manager.chrome import ChromeDriverManager
    ModuleNotFoundError: No module named 'webdriver_manager'

  • 如果我遗漏了什么,有人可以帮助我吗?
    如果它增加了任何值(value),我正在使用

    最佳答案

    更新(感谢 Vishal Kharde )
    该文档现在建议:

    pip install webdriver-manager

    解决方案:
    像这样安装它:
    pip install webdriver_manager
    而不是 pip install webdrivermanager .
    要求:
    根据文档,最新版本支持 python 3.6 或更新版本:
    enter image description here
    引用:
    https://pypi.org/project/webdriver-manager/

    关于python - ModuleNotFoundError : No module named 'webdriver_manager' error even after installing webdrivermanager,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63421086/

    27 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com