angie
Beta member
- Messages
- 3
- Location
- United States
Hello,
I'm teaching myself Python as my first programming language. The book says to type:
import urllib.request
import time
for the first two lines of code.
Whenever I type import urllib.request for the first line,
I get this error:
Traceback (most recent call last):
File "C:/Users/...", line 1, in <module>
import urllib.request
ImportError: No module named request
I'm really confused why this isn't working. I downloaded Python 3. However, when I select Run Shell, it says Python 2.7.6. I doubled checked and made sure that I downloaded Python 3 though.
Do you have any suggestions on how I can get this code to work?
I'm teaching myself Python as my first programming language. The book says to type:
import urllib.request
import time
for the first two lines of code.
Whenever I type import urllib.request for the first line,
I get this error:
Traceback (most recent call last):
File "C:/Users/...", line 1, in <module>
import urllib.request
ImportError: No module named request
I'm really confused why this isn't working. I downloaded Python 3. However, when I select Run Shell, it says Python 2.7.6. I doubled checked and made sure that I downloaded Python 3 though.
Do you have any suggestions on how I can get this code to work?