pyenv
$ pyenv Community Low Riskpyenv installs multiple CPython, PyPy, and Anaconda versions from source or prebuilt binaries and switches between them via .python-version files and shell shims. All CLI subcommands emit plain line-oriented text without JSON output.
brew install pyenv pyenv manages local ~/.pyenv interpreter installations and .python-version shims directly on disk; MCP is inapplicable.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Provides clean --bare / pyenv which text outputs, but lacks --json, --dry-run, and relies on shell PATH shims (pyenv init) that may be absent in subagent shells.
pyenv versions --bareoutputs plain version lines without JSON- Requires
~/.pyenv/shimsonPATHfor transparentpythondispatch
Local-only operations under ~/.pyenv/ and .python-version, though pyenv install compiles CPython from source and pyenv global mutates user-wide defaults.
- All toolchains isolated under
~/.pyenv/versions/
Unix-only (macos, linux); installing new Python versions requires C compiler toolchains and OpenSSL/zlib/readline headers.
- POSIX shell-script architecture; Windows requires separate
pyenv-winfork
Proven for managing legacy CPython versions, though source compilation is far slower than uv python install.
- Builds Python interpreters from source via
python-build
Long-standing community project (pyenv/pyenv) under MIT license.
- Maintained at
pyenv/pyenvunder MIT license
Well-documented README and command reference (pyenv commands), though troubleshooting build dependencies is common.
- Official README and
pyenv help <cmd>documentation
Security, Auth & Guardrails
No authentication required; built Python interpreters and shims live locally under ~/.pyenv/.
MIT open-source CLI; free to use.
# pyenv Agent Rules - Use `pyenv which python` or `$(pyenv root)/shims/python` when subagent shells lack `pyenv init`. - Never run `pyenv install` casually—compiling CPython from source can take several minutes and require system build headers.
Agent-Ready Command Recipes
Safe Read-Only Queries
pyenv versions --bare
Prints installed interpreter versions one per line without marker decoration.
pyenv which python
Outputs the full executable path selected by current shims and .python-version.
Controlled Writes & Previews
pyenv local 3.12.7
Writes .python-version in the current directory without altering global settings.
Strengths for Agents
- + Simple
.python-versionfile convention respected across editors and tools. - +
pyenv versions --bareandpyenv which pythongive clean single-line text for scripts. - + Supports installing niche or legacy CPython, PyPy, and Stackless builds via
python-build.
Caveats & Pitfalls
- ! No
--jsonoutput or--dry-runsupport; compilation from source is slow and needs OS C headers. - ! Non-login subagent shells often miss
pyenv initPATHshims unless$(pyenv root)/shimsis added explicitly.