ModuleNotFoundError: No module named 'webdriver_manager' error even after installing webdrivermanager
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' coming up even after trying everything
I ended up reinstalling Python completely, and now it works, but still thanks for all the help!
Selenium problem with the webdriver version installed through webdriver-manager while getting started
These log messages...
Current google-chrome version is 96.0.4664
Get LATEST chromedriver version for 96.0.4664 google-chrome
Driver [C:\Users\my_name\.wdm\drivers\chromedriver\win32\96.0.4664.45\chromedriver.exe] found in cache
...aren't any errors as such but operational log messages.
Irespective of having downloaded the latest ChromeDriver version available or even not having it, webdriver-manager will download the matching ChromeDriver as per the google-chrome version installed within your system.
Though the Chrome Browser team recently pushed a minor update and the current version being Version 96.0.4664.110, but the latest ChromeDriver v96.0.4664.45 have been tested and seems to work perfecto with Chrome Browser Version 96.0.4664.110. So you are safe and all set.
Selenium ChromeDriver issue using Webdriver Manager for Python
There are two issues in your code block as follows:
- You need to import ChromeDriverManager from
webdriver_manager.chrome
- As per Webdriver Manager for Python
download_and_install()
isn't supported and you have to useinstall()
So your effective code block will be:
from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
driver = webdriver.Chrome(ChromeDriverManager().install())
driver.get("http://www.python.org")
On windows-10 system the console output will be:
C:\Users\Admin\Desktop\Python Programs>python webdriver-manager_ChromeDriverManager.py
[WDM] -
[WDM] - ====== WebDriver manager ======
[WDM] - Current google-chrome version is 95.0.4638
[WDM] - Get LATEST driver version for 95.0.4638
[WDM] - There is no [win32] chromedriver for browser 95.0.4638 in cache
[WDM] - Get LATEST driver version for 95.0.4638
[WDM] - Trying to download new driver from https://chromedriver.storage.googleapis.com/95.0.4638.54/chromedriver_win32.zip
[WDM] - Driver has been saved in cache [C:\Users\Admin\.wdm\drivers\chromedriver\win32\95.0.4638.54]
DevTools listening on ws://127.0.0.1:50921/devtools/browser/c26df2aa-67aa-4264-b1dc-34d6148b9174
You can find a relevant detailed discussion in ModuleNotFoundError: No module named 'webdriver_manager' error even after installing webdrivermanager
Related Topics
How to Log Server Errors on Django Sites
Django JSONfield Inside Arrayfield
Combining Two Series into a Dataframe in Pandas
How to Change the Host and Port That the Flask Command Uses
Sending Mail from Python Using Smtp
How to Make a Python Script Executable
How to Convert a Password into Asterisks While It Is Being Entered
Mixed Slashes with Os.Path.Join on Windows
Get List of All Routes Defined in the Flask App
How to Check Whether a Variable Is a Class or Not
How to Set "Camera Position" for 3D Plots Using Python/Matplotlib
Python: Catching Specific Exception
Conditionally Format Python Pandas Cell
Pygame 2 Dimensional Movement of an Enemy Towards the Player, How to Calculate X and Y Velocity
How to Create Collapsible Box in Pyqt
Iterate Over All Combinations of Values in Multiple Lists in Python