ModuleNotFoundError: No module named 'webdriver_manager' 错误即使在安装 webdrivermanager 之后

ModuleNotFoundError: No module named #39;webdriver_manager#39; error even after installing webdrivermanager(ModuleNotFoundError: No module named webdriver_manager 错误即使在安装 webdrivermanager 之后)
本文介绍了ModuleNotFoundError: No module named 'webdriver_manager' 错误即使在安装 webdrivermanager 之后的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在我的

参考:https://pypi.org/project/webdriver-manager/

I've installed webdrivermanager on my windows-10 system

C:Usersusername>pip install webdrivermanager
Requirement already satisfied: webdrivermanager in c:pythonlibsite-packages (0.8.0)
Requirement already satisfied: lxml in c:pythonlibsite-packages (from webdrivermanager) (4.5.1)
Requirement already satisfied: requests in c:pythonlibsite-packages (from webdrivermanager) (2.20.1)
Requirement already satisfied: tqdm in c:pythonlibsite-packages (from webdrivermanager) (4.46.1)
Requirement already satisfied: appdirs in c:pythonlibsite-packages (from webdrivermanager) (1.4.4)
Requirement already satisfied: BeautifulSoup4 in c:pythonlibsite-packages (from webdrivermanager) (4.6.0)
Requirement already satisfied: certifi>=2017.4.17 in c:pythonlibsite-packages (from requests->webdrivermanager) (2018.11.29)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in c:pythonlibsite-packages (from requests->webdrivermanager) (3.0.4)
Requirement already satisfied: idna<2.8,>=2.5 in c:pythonlibsite-packages (from requests->webdrivermanager) (2.7)
Requirement already satisfied: urllib3<1.25,>=1.21.1 in c:pythonlibsite-packages (from requests->webdrivermanager) (1.23)

Still whenever I am trying to use webdrivermanager I'm facing an error.

  • Code Block:

    from selenium import webdriver
    from webdriver_manager.chrome import ChromeDriverManager
    
    driver = webdriver.Chrome(executable_path=ChromeDriverManager().install())
    driver.get('https://www.google.com/')
    

  • Console Output:

    C:UsersusernameDesktopDebanjanPyPrograms>webdriverManagerChrome.py
    Traceback (most recent call last):
      File "C:UsersusernameDesktopDebanjanPyProgramswebdriverManagerChrome.py", line 2, in <module>
        from webdriver_manager.chrome import ChromeDriverManager
    ModuleNotFoundError: No module named 'webdriver_manager'  
    

Can someone help me, if I'm missing something?

Incase it adds any value, I'm using sublimetext3

解决方案

Update (thanks to Vishal Kharde)

The documentation now suggests:

pip install webdriver-manager


Solution:

Install it like that:

pip install webdriver_manager

instead of pip install webdrivermanager.

Requirements:

The newest version, according to the documentation supports python 3.6 or newer versions:

Reference: https://pypi.org/project/webdriver-manager/

这篇关于ModuleNotFoundError: No module named 'webdriver_manager' 错误即使在安装 webdrivermanager 之后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

Interpolate list to specific length?(是否将列表内插到特定长度?)
Pandas interpolation replacing NaNs after the last data point, but not before the first data point(在最后一个数据点之后,而不是在第一个数据点之前,用PANAS插值法替换NAN)
How to use interpn to interpolate in a dataframe?(如何使用Interpn在数据帧中进行内插?)
Functions in Azure Data Factory Pipeline debugging Internal Server Error(Azure数据工厂管道中的函数调试内部服务器错误)
Python SFTP: Use SFTP to put memory stream into remote folder. Like FTP storbinary(Python SFTP:使用SFTP将内存流放入远程文件夹。类似于Ftp Stor二进制)
Python PYSFTP - pass private-key as string/text instead of passing file path(Python PYSFTP-以字符串/文本形式传递私钥,而不是传递文件路径)