Everyone write if which pyenv > /dev/null; then eval "$(pyenv init -)"; fi
into .bashrc etc after installation of pyenv.
I know if I didn't excute eval "$(pyenv init -)"
, python's version would not change.
Why do I need to write if which pyenv > /dev/null
?
What's it mean? What would happen without it?
Thanks.