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

7 Replies, 1990 Views

Not sure if this’ll help, but for import requests python on mac, I had to mess with my shell config.

If you’re using zsh (default on newer Macs), add this to `~/.zshrc`:
`export PATH="/usr/local/opt/python/libexec/bin:$PATH"`

Then `source ~/.zshrc` and reinstall requests. Weird, but fixed it for me!

Messages In This Thread



Users browsing this thread: 1 Guest(s)