ModuleNotFoundError No module named selenium

+1 vote

Hi Guys,

I am trying to create one python script that connects to my Whatsapp using the selenium module. But it is showing me the below error. 

ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-2-b862d21102f3> in <module>
----> 1 from selenium import webdriver
      2 
      3 driver = webdriver.Chrome()
      4 driver.get('http://web.whatsapp.com')
      5 
ModuleNotFoundError: No module named 'selenium'

How can I solve this error?

Jun 25, 2020 in Python by akhtar
• 38,170 points
6,117 views

2 answers to this question.

0 votes

Hi@akhtar,

You need to install the selenium module in your system. You can use the below-given command to install the selenium module.

$ pip install selenium

I hope this will help.

answered Jun 25, 2020 by MD
• 95,060 points
hi @MD

i installed selenium in my system its showing all dependencies are satisfied but when i run the py file its showimg me the same error (im using pop_os and vs code )

can you help  me please...
Hi@sai,

After installing the module, you need to restart your IDE. Otherwise, it will not update automatically.
0 votes
i fix the problem after installing

go to file setting and python interpreter and click one any one and search for selenium and click install
answered Nov 17, 2020 by ahmed

Related Questions In Python

+1 vote
1 answer

Web Scraping with Python:-> ModuleNotFoundError: no module named 'selenium'

Hello @shamsher, First try to check what version ...READ MORE

answered Aug 9, 2020 in Python by Niroj
• 82,580 points
884 views
+1 vote
3 answers
+2 votes
3 answers

ModuleNotFoundError: No module named 'Crypto'

The module you’ve installed is different. To install ...READ MORE

answered Aug 20, 2019 in Python by Raman
27,393 views
0 votes
2 answers

ModuleNotFoundError: No module named 'pythoncom' in pyttsx3

even i faced the same problem ...just ...READ MORE

answered Jun 2, 2020 in Python by anonymous
5,955 views
0 votes
2 answers
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 1,858 views
0 votes
0 answers
0 votes
2 answers

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,520 points
4,647 views
+1 vote
3 answers

ModuleNotFoundError: No module named 'cv2'

Hi@akhtar, This error may occur if you didn't install ...READ MORE

answered Apr 9, 2020 in Python by MD
• 95,060 points
46,909 views
+2 votes
2 answers

ModuleNotFoundError: No module named 'pyttsx3

If you have installed Anaconda  Navigator then ...READ MORE

answered Oct 12, 2020 in Python by Jamil
6,236 views