How to Fix \'ModuleNotFoundError: No module named \'webdriver_manager\'\' Exception after Installing WebDriverManager?

Mary-Kate Olsen
Release: 2024-10-21 13:15:03
Original
1136 people have browsed it

How to Fix

ModuleNotFoundError: No module named 'webdriver_manager' Even After Installing WebDriverManager

After installing WebDriverManager on Windows-10, errors still occur when trying to use it. For instance, the code below throws an "ModuleNotFoundError" exception despite installing WebDriverManager via pip install webdrivermanager.

<code class="python">from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager

driver = webdriver.Chrome(executable_path=ChromeDriverManager().install())
driver.get('https://www.google.com/')</code>
Copy after login

Solution

The issue arises due to an incorrect pip command used for installation. The correct command should be:

<code class="bash">pip install webdriver-manager</code>
Copy after login
Copy after login

Update

As suggested by Vishal Kharde, the current documentation recommends using the command:

<code class="bash">pip install webdriver-manager</code>
Copy after login
Copy after login

Requirements

WebDriver-manager version 0.8.1 and above require Python 3.6 or newer.

Reference:

  • [WebDriverManager on PyPI](https://pypi.org/project/webdriver-manager/)

The above is the detailed content of How to Fix \'ModuleNotFoundError: No module named \'webdriver_manager\'\' Exception after Installing WebDriverManager?. For more information, please follow other related articles on the PHP Chinese website!

source:php
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template