For macOS users: https://dylancastillo.co/til/fixing-python-not-found-error-in-macos.html
Just add the following line to your .zshrc file:
.zshrc
export PATH="$(brew --prefix python)/libexec/bin:$PATH"