Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

pyenv

$ pyenv Community Low Risk
pyenv · Code & DevOps · MIT · macos / linux

pyenv 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.

FCRS-1.0 Score
73 /100
Usable w/ Caveats
Medium Confidence
Zero-Friction Install
brew install pyenv
CLI vs MCP Decision CLI Only

pyenv manages local ~/.pyenv interpreter installations and .python-version shims directly on disk; MCP is inapplicable.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 15 / 25

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 --bare outputs plain version lines without JSON
  • Requires ~/.pyenv/shims on PATH for transparent python dispatch
Trust & Safety 19 / 25

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/
Setup & Portability 11 / 15

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-win fork
Utility & Efficiency 12 / 15

Proven for managing legacy CPython versions, though source compilation is far slower than uv python install.

  • Builds Python interpreters from source via python-build
Maintenance & Lineage 8 / 10

Long-standing community project (pyenv/pyenv) under MIT license.

  • Maintained at pyenv/pyenv under MIT license
Docs & Verifiability 8 / 10

Well-documented README and command reference (pyenv commands), though troubleshooting build dependencies is common.

  • Official README and pyenv help <cmd> documentation

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

No authentication required; built Python interpreters and shims live locally under ~/.pyenv/.

Side Effects
Read-Only Local Write
Cost & Quotas

MIT open-source CLI; free to use.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

List installed Python versions cleanly
pyenv versions --bare

Prints installed interpreter versions one per line without marker decoration.

Resolve path to active python binary
pyenv which python

Outputs the full executable path selected by current shims and .python-version.

Controlled Writes & Previews

Pin local Python version for repo
pyenv local 3.12.7

Writes .python-version in the current directory without altering global settings.

Strengths for Agents

  • + Simple .python-version file convention respected across editors and tools.
  • + pyenv versions --bare and pyenv which python give clean single-line text for scripts.
  • + Supports installing niche or legacy CPython, PyPy, and Stackless builds via python-build.

Caveats & Pitfalls

  • ! No --json output or --dry-run support; compilation from source is slow and needs OS C headers.
  • ! Non-login subagent shells often miss pyenv init PATH shims unless $(pyenv root)/shims is added explicitly.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI