pyenv
seems to require explicit .python-version
file to be set in the current directory for any other version than the default in .pyenv/version
. This is explained in a closed GitHub issue.
The problem is fixed by creating .python-version
file. This is done automatically for example by $ pyenv local 2.7.10
.
The initial problem therefore is in the poor error message. I created a new issue to fix it.