"command not found: python" each time I open the Terminal
Question:
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?
Answers:
Add eval "$(pyenv init --path)"
to ~/.zshrc
Add eval "$(pyenv init --path)"
to ~/.zshrc
– here’s how to do this in the Terminal:
eval "$(pyenv init --path)" >> ~/.zshrc
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?
Add eval "$(pyenv init --path)"
to ~/.zshrc
Add eval "$(pyenv init --path)"
to ~/.zshrc
– here’s how to do this in the Terminal:
eval "$(pyenv init --path)" >> ~/.zshrc