Having trouble with 'py import requests' – any tips for a beginner? or Why does 'py import requests'

18 Replies, 1299 Views

Hey! Sounds like you might not have the requests library installed. For *py import requests* to work, you need to install it first using pip.

Try running:
`pip install requests`

If that doesn’t work, maybe your Python/pip setup is weird. Check out the official docs for troubleshooting: https://requests.readthedocs.io/en/latest/

Also, yeah, requests is pretty much the go-to for HTTP stuff in Python—super easy to use once you get it working!

Messages In This Thread



Users browsing this thread: 1 Guest(s)