urllib.request module fails to install in my system

Mounarajan picture Mounarajan · Apr 1, 2015 · Viewed 82.6k times · Source

Tried installing urllib.request module using below command

sudo pip install urllib.request

but it returned

Downloading/unpacking urllib.request
  Could not find any downloads that satisfy the requirement urllib.request
Cleaning up...
No distributions at all found for urllib.request
Storing debug log for failure in /home/mounarajan/.pip/pip.log

How can I install this module?

Answer

Kozyarchuk picture Kozyarchuk · Apr 1, 2015

urllib.request is only available in python3 branch. See the following post for more info. urllib.request in Python 2.7