LoginSignup
0
1

More than 5 years have passed since last update.

pyenvでPythonをインストールする

Last updated at Posted at 2017-04-20

条件

  • 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()
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1