4
4

More than 5 years have passed since last update.

homebrew でインストールした pyenv から最新の Python をインストールする

Posted at

homebrew でインストールされる pyenv はリリースタグが打たれたものなので、
pyenv 本家の HEAD では対応している Python のバージョンに対応していないことがある。

本家から git clone してインストールすればいいんだけど、管理とか面倒なので、できれば homebrew で upgrade できるようにしておきたい。

tar ball から入れるのもめんどいし、今更 pythonz もなぁ.. とヘルプを眺めていたら <definition-file> とかあるじゃないですか。

% pyenv install -h               
Usage: pyenv install [-f] [-kvp] <version>
       pyenv install [-f] [-kvp] <definition-file>
       pyenv install -l|--list

で、やってみたらできた!

  1. https://github.com/yyuu/pyenv/tree/master/plugins/python-build/share/python-build から目当てのファイルを探してダウンロードする
  2. あるいは自分で書く
  3. 3.4.0rc2 を使うことにする: pyenv install ./3.4.0rc2
  4. 確認: pyenv versions
4
4
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
4
4