pythonpyenvpyenv-virtualenv

How to check the version of pyenv itself


The version of pyenv is listed in Version History, how can I check the version of pyenv itself with a command? I searched for it, but couldn't find it.


Solution

  • You can use either pyenv -v or pyenv --version to get the version of pyenv itself.

    % pyenv --version
    pyenv 2.0.1
    % pyenv -v
    pyenv 2.0.1
    

    When in doubt do pyenv -h

    % pyenv -h
    Usage: pyenv <command> [<args>]
    
    Some useful pyenv commands are:
       --version   Display the version of pyenv
    

    Version comes up as the first command.