ModuleNotFoundError: No module named ‘webdriver_manager’

Are you getting the error “modulenotfounderror: no module named webdriver_manager“? Yes, you have come to the right place. Today in this tutorial, I will show you how to get rid of this error.

To solve this Python error “no module named webdriver_manager“, you need to upgrade the version of your PIP and then install “webdriver_manager” to resolve the “no module named webdriver_manager” error. Below are the commands to do these tasks.

Solved: modulenotfounderror: no module named ‘webdriver_manager’

#Run this command to upgrade the PIP
 --> pip3 install --upgrade pip

#Run this command to install webdriver_manager
 --> pip3 install webdriver-manager

If you are unable to execute the above commands for any reason, you can try the command in the box below. These commands will surely solve your issue of “modulenotfounderror: no module named ‘webdriver_manager’“.

modulenotfounderror: no module named ‘webdriver_manager’ [Fixed]

# First upgrade pip to the latest version
 --> pip3 install --upgrade pip

# Ff you get permissions error, run as admin
 --> sudo pip3 install --upgrade pip

# In a virtualenv or using Python-2
 --> pip install webdriver-manager

# For the Python verison : 3
 --> pip3 install webdriver-manager

# If you get permissions issues with the commands
 --> sudo pip3 install webdriver-manager
 --> pip install webdriver-manager --user

# If you don't have pip in your PATH environment variable
 --> python -m pip install webdriver-manager

# For Python version 3
 --> python3 -m pip install webdriver-manager

# Using py alias (Windows)
 --> py -m pip install webdriver-manager

# Command for Anaconda
 --> conda install -c conda-forge webdriver-manager

# Command if you are using Jupyter Notebook
 --> !pip install webdriver-manager

The Possible reasons for “modulenotfounderror: no module named ‘webdriver_manager'”:

Reason 01:

Having an outdated version of the PIP.

Solution:

Upgrade the PIP using this command “sudo pip3 install –upgrade pip“.

Reason 02:

webdriver-manager” is not installed on your machine.

Solution:

Install the “webdriver-manager” package using this command “sudo pip3 install webdriver-manager“.

Reason 03:

Installing the package globally.

Solution:

If you are using the virtual environment for your project then make sure you installed “webdriver-manager” in your virtual environment not globally.

Reason 04:

Declaring a variable named “webdriver-manager“.

Solution:

Don’t declare the variable named “webdriver-manager” which would shadow the imported variable.

Reason 05:

File name same as the package name.

Solution:

If your file name is “webdriver-manager“, change the file name.

[Fixed]: TypeError: tuple indices must be integers or slices, not str

Conclusion on ModuleNotFoundError: No module named ‘webdriver-manager

Programmers, we discussed how to solve “ModuleNotFoundError: No module named ‘webdriver-manager’“. You can upgrade the PIP using the above commands, or installing “webdriver-manager” can solve your error. If you are still facing the issue please let us know in the comments section.

Leave a Reply