0
import selenium 

returns

ModuleNotFoundError: No module named 'selenium'

But when I pip freeze I see:

selenium==4.8.2

Running:

  • spyder 5.4.2
  • python 3.8.10
  • windows 11 pro

Have tried installing/uninstalling selenium with pip

Running python -m pip install -U selenium returns: 'python' is not recognized as an internal or external command, operable program or batch file.

same with py instead of python

Might have something to do with environment but did not set one up after installing python, so not sure where downloaded packages are headed vs where spyder is pulling them from

programandoconro
  • 2,378
  • 2
  • 18
  • 33

2 Answers2

0

Try installing using pip3

pip3 install selenium
0

Most probably this issue is due to your PIP and virtual environment module installation path. Your pip showing that requirement already satisfied because in python dependencies it is present but due to the path of venv it is not detecting.

you can check the PIP location using:

where pip