PyEnv BUILD FAILED installing Python on MacOS

后端 未结 8 2042
无人及你
无人及你 2020-12-23 11:57

While trying to install Python 3.6.6 (for Airflow) using PyEnv on MacOS, I am encountering build failure

8条回答
  •  一生所求
    2020-12-23 12:29

    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.

提交回复
热议问题