My .bashrc has this:
enable-pyenv () { # Load pyenv automatically by adding # the following to your profile: export PATH=\"$HOME/.pyenv/bin:$PATH\"
None of the posted answers worked for me but the following did:
$ echo "" > /home/myusername/.pyenv/version