Cannot switch Python with pyenv

后端 未结 6 903
忘掉有多难
忘掉有多难 2021-01-30 08:36

I would like to use pyenv to switch python2 and python3.

I successfully downloaded python2 and python3 and pyenv with following codes.

brew install pyenv         


        
6条回答
  •  悲哀的现实
    2021-01-30 09:25

    You forgot to add this eval "$(pyenv init -)".

    Add this to your .bash_profile or .bashrc file (mac <=10.14) or to your .zshrc file (mac 10.15+)

提交回复
热议问题