While trying to install Python 3.6.6
(for Airflow
) using PyEnv
on MacOS
, I am encountering build failure
short answer:
$ brew upgrade
now you can try to install python through pyenv
$ pyenv install 3.7.4
then, you have to set the python path
pyenv global 3.7.4
now, close and open a new terminal and write the command
echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.bash_profile
That's all. For me it was fine.