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

16 Replies, 1910 Views

Hey! Had the same issue last week. Turns out I had multiple Python versions installed, and pip installed 'requests' for the wrong one.

Try running `python -m pip install requests` to make sure it installs for the correct Python version.

Also, check your PATH with `python -c "import sys; print(sys.path)"` to see if the module's install location is listed.

If all else fails, maybe try a virtual env?

Messages In This Thread



Users browsing this thread: 1 Guest(s)