ImportError : cannot import name urlopen
<p>I am trying to open up an URL for my project and here is my code:</p>

<pre><code>from urllib2 import urlopen
page = urlopen("https://docs.python.org/3/howto/urllib2.html")
contents = page.read()
</code></pre>

<p>It's just a simple code for a demo however, when I run the codes, I got the following error <strong>"ImportError : cannot import name urlopen"</strong></p>

<p>I tried to type "pip install urllib2" into CMD and got the following error as well "Could not find a version that satisfies the requirement urllib2...no matching distribution found for urllib2"</p>

<p>How do I solve this error as I'm using python 2.7.12 instead of python3</p>