Help us understand the problem. What is going on with this article?

pyenv自身のバージョンを上げる

More than 3 years have passed since last update.

Pyenvとは

Pyenv自体はLL言語に良くある言語のバージョン管理を手軽にすることのできるツールです.

導入も簡単で,
1.git clone

$ git clone git://github.com/yyuu/pyenv.git ~/.pyenv

2.パスを通す

$ echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bash_profile
$ echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile
$ echo 'eval "$(pyenv init -)"' >> ~/.bash_profile
$ source ~/.bash_profile

3.使用可能

$ pyenv
pyenv 1.0.3-119-gfe1bd31
Usage: pyenv <command> [<args>]

Some useful pyenv commands are:
   commands    List all available pyenv commands
   local       Set or show the local application-specific Python version
   global      Set or show the global Python version
   shell       Set or show the shell-specific Python version
   install     Install a Python version using python-build
   uninstall   Uninstall a specific Python version
   rehash      Rehash pyenv shims (run this after installing executables)
   version     Show the current Python version and its origin
   versions    List all Python versions available to pyenv
   which       Display the full path to an executable
   whence      List all Python versions that contain the given executable

See `pyenv help <command>' for information on a specific command.
For full documentation, see: https://github.com/pyenv/pyenv#readme

pyenv-update

pyenv自体がgitで管理されているので新しいバージョンをgit pullしてくるという手もありますが,すでに一発でアップデート出来るようにしてくれるプラグイン「pyenv-update」があります.

https://github.com/pyenv/pyenv-update

これまた簡単に導入でき,
1.git clone

$ git clone git://github.com/yyuu/pyenv-update.git ~/.pyenv/plugins/pyenv-update

2.アップデート

$ pyenv update
hatt0519
Android開発しています。
mixi
全ての人に心地よいつながりを
http://mixi.co.jp
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away