I am trying to run tests with selenium in python, but it can not be recognized.
I have tried uninstalling with pip uninstall selenium
and reinstalling, and it has not worked.
When i run import selenium
i get this error:
import selenium
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named selenium
But, when I run pip install selenium
, I get:
Requirement already satisfied: selenium in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (3.141.0)
Requirement already satisfied: urllib3 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from selenium) (1.25.9)
I am not sure if Selenium is just in the wrong place on my machine so it can not be recognized, or what is going on.
Thanks