pyenv
Summary
Section titled “Summary”Installs pyenv (pyenv/pyenv) for managing multiple Python versions, initialising it automatically via a generated zpyenv.zsh shim sourced on every shell start.
Syntax / Usage
Section titled “Syntax / Usage”zi pack for pyenv/pyenvzi pack"bgn" for pyenv/pyenvAvailable profiles: default, bgn.
Details
Section titled “Details”- Provides:
pyenvbinary viapick(default) orsbinshim (bgn), and a generatedzpyenv.zshinit script sourced at startup. defaultprofile ices:as"command",pick"bin/pyenv",nocompile"!",lucid,atclone"PYENV_ROOT=\"$PWD\" ./libexec/pyenv init - > zpyenv.zsh",atpull"%atclone",atinit"export PYENV_ROOT=\"$PWD\"",src"zpyenv.zsh".bgnprofile ices:as"null",sbin"bin/pyenv",nocompile"!",lucid, sameatclone/atpull/atinit/srcas default. Requires thebin-gem-nodeannex.PYENV_ROOTis set to the zinit plugin directory (not~/.pyenv); this is intentional and keeps pyenv self-contained under zinit’s data directory.
Examples
Section titled “Examples”# Standard install — pyenv on PATH via pickzi pack for pyenv/pyenv
# bgn annex shim variantzi pack"bgn" for pyenv/pyenvCaveats / Common Mistakes
Section titled “Caveats / Common Mistakes”PYENV_ROOTpoints to the zinit clone directory, not~/.pyenv. Code that hardcodes~/.pyenvwill not find shims.- Requires
bashto be available (used by pyenv’s libexec scripts).
See Also
Section titled “See Also”- pkg-overview — how
zi packworks