When you running Python script on Mac OS, you may occurs Python error like this one:
~/.bash_profile if you are using
zsh and add these lines.
In some case, you may need to set
Restart your terminal or computer or run this command to reload environment variables.
To make sure it was set, check with