This is a work memo when I introduced pyenv in Homebrew and made it possible to manage the Python version of the work environment.
$ brew install pyenv
$ eval "$(pyenv init -)"
If you want to do it automatically from the next time onward, please describe as follows in
~ / .bash_profie
etc.
~/.bash_profile
eval "$(pyenv init -)"
For example, if you want to install version 3.5.0
$ pyenv install 3.5.0
Then switch the version used in the work environment to 3.5.0
.
$ pyenv global 3.5.0
Let's check the version.
$ python --version
Python 3.5.0
that's all
Recommended Posts