I'm trying to get a headless webscraper going using firefox and geckodriver and I'm trying to get the paths using webdriver_manager.
I've run
pip install webdriver_manager
and I'm trying to use this to open the browser
from selenium import webdriver
from webdriver_manager.firefox import GeckoDriverManager
browser = webdriver.Firefox(executable_path=GeckoDriverManager().install())
However, I keep getting a runtime error
ModuleNotFoundError: No module named 'webdriver_manager'
I've already added the library to the python interpreter in PyCharm, but I just can't get it to work.
I found another solution. Go to Python Packages at the bottom panel, search for "webdriver-manager" and install it manually
I had a similar problem for a long while and I found a solution that actually worked for me:
python3 -m pip install webdriver_manager
All of my research told me in one form or another to run the following that never worked for me:
pip install webdriver_manager
Running the first command instead for whatever reason actually allowed me to utilize the module.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With