Brandon Zemel
Brandon Zemel

Reputation: 97

Getting the "ImportError: No module named selenium" even though Selenium is installed

I installed selenium with pip3 install selenium, but still getting an ImportError.

I even tried reinstalling again just to make sure, but it says

requirement already satisfied:
urllib3 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from selenium) (1.25.9)

Do I need to point Python somewhere for it to see it or something?

Upvotes: 0

Views: 91

Answers (1)

Mrinal Roy
Mrinal Roy

Reputation: 979

Try running your script using python3 instead of just python:

python3 script.py

You can reinstall or upgrade selenium using sudo:

pip3 install -U selenium

Upvotes: 3

Related Questions