条件
- Mac OS Sierra
- anyenvをインストール済
インストール手順
pyenvのインストール&パスの設定
$ anyenv install pyenv
$ echo 'eval "$(pyenv init -)"' >> ~/.bash_profile
$ source ~/.bash_profile
Pythonのインストール
#インストール可能なVer.の確認
$ pyenv install --list
# 最新の安定板をインストール
$ pyenv install 3.6.1
# インストールしたVer.をglobalにする
$ pyenv global 3.6.1
$ pyenv versions
system
* 3.6.1
Pythonの動作確認
$ python
Python 3.6.1 (default, Apr 20 2017, 11:16:55)
[GCC 4.2.1 Compatible Apple LLVM 8.1.0 (clang-802.0.42)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()