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

18 Replies, 1323 Views

Sounds like a classic pip/Python path issue. For *py import requests*, make sure:

- Pip is up to date (`pip install --upgrade pip`)
- You’re installing to the right Python env

If it’s flaky, try `python -m pip install requests` to force the correct env.

And yeah, requests is the best—urllib is a pain.

Messages In This Thread



Users browsing this thread: 1 Guest(s)