ModuleNotFoundError No module named urllib

0 votes

Hi Guys,

I am trying to import urllib module in my python code. But I am getting the below error.

ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-10-846c1dbd158b> in <module>
----> 1 import urllib2
ModuleNotFoundError: No module named 'urllib'

How can I solve this error?

Jun 26, 2020 in Python by akhtar
• 38,170 points
950 views

1 answer to this question.

0 votes

Hi@akhtar,

You need to install urllib module in your system. By default, it is a part of your python package. But in some version, it is required to install. You can use the below-given command to install urllib module.

$ pip install urllib

I hope this will help.

answered Jun 26, 2020 by MD
• 95,060 points

Related Questions In Python

+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,059 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,925 views
0 votes
1 answer

ModuleNotFoundError: No module named 'Foundation'

Hi@akhtar, By default Foundation module comes with Anaconda ...READ MORE

answered Apr 24, 2020 in Python by MD
• 95,060 points
664 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,842 views
0 votes
0 answers
+4 votes
6 answers

Lowercase in Python

You can simply the built-in function in ...READ MORE

answered Apr 11, 2018 in Python by hemant
• 5,810 points
1,419 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
45,691 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,134 views