When I tried to upgrade the pre-installed 2.X python to 3.x, I got stuck a little, so make a note.
Install and confirm new version
$ pyenv install 3.6.0 $ pyenv versions system * 3.6.0 (set by ...
After creating a new directory, switch the version with the local option there. I didn't mean it. ..
$ pyenv local 3.6.0 $ python -V Python 2.7.10
Add the following to ~ / .bash_profile
export PATH="$HOME/.pyenv/shims:$PATH"
Apply .bash_profile
source ~/.bash_profile
Now that Path has passed, the version has been switched successfully!
$ python -V Python 3.6.0
Recommended Posts