brew install pyenv
pyenv install --list
pyenv install 3.12.6
pyenv versions
pyenv global 3.12.6
- Open
~/.zprofile
or~/.bash_profile
or~/.zshrc
, add the following
eval "$(pyenv init --path)"
- Relaunch
source ~/.zprofile
source ~/.bash_profile
source ~/.zshrc