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

18 Replies, 1315 Views

lol classic beginner mistake. You gotta install requests first, my dude.

Just open your terminal and type:
`pip install requests`

If it still fails, maybe your Python env is messed up. Try `python -m pip install requests` instead.

Btw, requests is the best for simple HTTP stuff. Alternatives like urllib are built-in but way more annoying to use.

Messages In This Thread



Users browsing this thread: 1 Guest(s)