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,180 points
9,201 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,220 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,760 points
1,226 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
33,698 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
6,701 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 2,181 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
5,345 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,220 points
76,210 views
+2 votes
2 answers

ModuleNotFoundError: No module named 'pyttsx3

Hi@akhtar, To avoid this error you have to ...READ MORE

answered Apr 24, 2020 in Python by MD
• 95,220 points
8,637 views