pyenv support multiple versions.
It will try the versions in order.
% python --version
Python 3.4.3
% pyenv shell 2.7.9:3.4.3
% python --version
Python 2.7.9
% pyenv version
3.4.3 (set by /home/user/.pyenv/version)
2.7.9 (set by /home/user/.pyenv/version)
% cat .pyenv/version
3.4.3
2.7.9
% pyenv version-name
3.4.3:2.7.9
% pyenv versions
system
…
* 2.7.9 (set by /home/daniel/.pyenv/version)
…
* 3.4.3 (set by /home/daniel/.pyenv/version)
…
When trying to run a shim from a version that's not activated, you'll see
a list of versions where it is available (that might be the case for
rbenv/anyenv already):
% easy_install-2.6
pyenv: easy_install-2.6: command not found
The `easy_install-2.6' command exists in these Python versions:
2.6.9
pyenv support multiple versions.
It will try the versions in order.
When trying to run a shim from a version that's not activated, you'll see
a list of versions where it is available (that might be the case for
rbenv/anyenv already):