How do I properly use 'import requests python' for web scraping? or What's the best way to handle err

16 Replies, 1911 Views

Ugh, ModuleNotFoundError is the worst. Quick sanity check: did you install it globally or in a venv?

If you're using VS Code, sometimes the IDE picks the wrong interpreter. Click the Python version in the bottom-left corner and switch it.

Also, `pip show requests` will tell you where it's installed. If it's not there, your pip might be borked.

Messages In This Thread



Users browsing this thread: 1 Guest(s)