Having trouble with 'import requests python on mac'? Need help getting it to work!

7 Replies, 1348 Views

Hey! I had the same issue with *import requests python on mac*. Turns out, my PATH was messed up.

Try this:
1. Open your terminal.
2. Run `nano ~/.zshrc` (or `~/.bashrc` if you’re using bash).
3. Add this line: `export PATH="/usr/local/opt/python/libexec/bin:$PATH"`
4. Save and restart your terminal.

Then, try installing requests again with `pip install requests`. Worked for me!

Messages In This Thread



Users browsing this thread: 1 Guest(s)