I follow this steps and it works now
brew install pyenv
pyenv install --list
pyenv install 2.7.18
pyenv versions
pyenv global 2.7.18
Add eval "$(pyenv init --path)" to ~/.zprofile (or ~/.bash_profile or ~/.zshrc
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: