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?
URLError – It is raised for the errors in URLs, or errors while fetching the URL due to connectivity, and has a 'reason' property that tells a user the reason of error. HTTPError – It is raised for the exotic HTTP errors, such as the authentication request errors. It is a subclass or URLError.
urllib is a package that collects several modules for working with URLs: urllib. request for opening and reading URLs. urllib. error containing the exceptions raised by urllib.
urllib.request is only available in python3 branch. See the following post for more info. urllib.request in Python 2.7
For Python3 in cmd,
pip install urllib3
Or if you're using a anaconda:
conda install urllib3
Hope, this will help you
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With