How to install urllib using pip?

In this article let’s discuss about How to install urllib using pip?. Let’s go through the following methods without any delay.

Method 1:

pip install urllib3

If you are facing any issues with the above approach then try the alternative that is given below. It may look similar but have a try!

Method 2 :

#Used to make requests
import urllib.request

x = urllib.request.urlopen('https://www.google.com/')
print(x.read())

Hope the above solution works.

Realted Posts : How to install opencv on anaconda?