-1

Facing issue with error :

ModuleNotFoundError: No module named 'selenium'

Basically, Error is not specific to module 'selenium'. Facing this issue in VS Code even when, I have selenium installed for python 2.x and 3.x

Refer below image:

enter image description here

I have tried :

pip install selenium

OR

pip3 install selenium

Please suggest if anyone has working solution.

1 Answer 1

0

Following solution worked for me:

  • Cross check you have installed the module for which error occurred

  • You can check it using cmd pip3 show selenium i.e. pip3 show <module_name>

  • Expectations are to get details about respective module

  • If not then try pip install selenium or pip3 install selenium

  • Open VS Code > Preferences > settings

  • Enter "python default interpreter path" in searchbox

enter image description here

  • Enter appropriate version python or python3 for your project

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.