When I run the following code in Python 3.3:
import urllib tempfile = urllib.request.urlopen(\"http://yahoo.com\")
I get the following error:>
Interestingly, I noticed some IDE-depending behavior.
Both Spyder and PyCharm use the same interpreter on my machine : in PyCharm I need to do
import urllib.request
while in Spyder,
import urllib
does fine