brew uninstall --force binutils
brew uninstall --force pyenv
brew install --HEAD pyenv
pyenv install 3.7.3
pyenv global 3.7.3
pyenv version
$ echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.zshrc
$ echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.bashrc
In bootstrap, consider setting MacOS to python3 using
pyenvRef: https://opensource.com/article/19/5/python-3-default-mac#what-to-do
To bypass
ld: symbol(s) not found for architecture x86_64orclangerrors here is full procedure.