Pyenv maintainers encourage you to install pyenv using either the GitHub checkout method or via Homebrew
However, there are other unofficial ways which you can install pyenv which are listed here. The following methods are not tested, maintained, or supported by the pyenv team:
ZPlug plugin manager for Zsh
suggested by @andypalmer in #1598
Add the following line to your .zshrc:
zplug "RiverGlide/zsh-pyenv", from:gitlab
Then install the plugin
The ZPlug plugin will install and initialise pyenv and add pyenv and pyenv-install to your PATH
Upgrading via ZPlug
To upgrade to the latest version of pyenv, update the ZPlug plugin: