"command not found: python" each time I open the Terminal

Viewed 45

I'm on an M1 Mac. Each time I enter a python command in Terminal, I get "command not found: python".

To fix this, I can enter eval "$(pyenv init --path)".

How can I use Python without having to first run the eval line above each time I open the Terminal?

1 Answers

Add eval "$(pyenv init --path)" to ~/.zshrc

Related