Search code examples
pythonubuntupipurllibsudo

urllib.request module fails to install in my system


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?


Solution

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