Having trouble with 'import requests python on mac'—any fixes?

7 Replies, 1996 Views

Hey! Had the same issue with import requests python on mac. Turns out I had multiple Python versions installed, and pip was installing to the wrong one.

Try running `which python3` and `which pip` in terminal to check paths. If they don’t match, you might need to use `python3 -m pip install requests` instead.

Also, virtual environments can save you from this mess—`python3 -m venv myenv` then `source myenv/bin/activate` before installing.

Hope that helps!

Messages In This Thread



Users browsing this thread: 1 Guest(s)