Python
pyenv

pyenvでinstallが見つからなかった

pyenvでpythonをinstallしようとするがinstallのみが発見できない...めっちゃ悩んだ...

$ pyenv 
pyenv 1.2.3-45-g63c4b7f
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
   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
$ pyenv install --list
pyenv: no such command `install'

解決法

cloneし直す。考え直してみると、あ、はいと言う感じ。

$ rm -rf ~/.pyenv
$ git clone https://github.com/pyenv/pyenv.git ~/.pyenv