1

I read this in addition to MANY other things: Importing requests module does not work

I am using VSCode and python 3.8. I am able to import it seems any library except "requests" Given the ages of the previous posts I hope to know what a good current next step could be, please and thank you

import math
import asynchat
import signal
import importlib
import requests  <-----Will NOT import

response = requests.get("http://api.open-notify.org/astros.json" [api.open-notify.org])

print(response.text)
print(response)
Landscaper3345
  • 365
  • 2
  • 11

1 Answers1

1

I think your requests is not well installed. Make sure it's installed with the python you are using with.

Try pip3 install requests.

Zichzheng
  • 1,090
  • 7
  • 25