pip
$ pip Foundation Med Riskpip is the reference package installer for Python maintained by PyPA. Modern versions support --no-input, --dry-run --report - JSON installation plans, pip list --format=json, and --no-color for deterministic automation.
pip install pip pip resolves and installs packages directly into the active Python interpreter or virtualenv; local environment inspection cannot be delegated to an MCP server.
Agent-Readiness Checklist
Local Probe EvidenceFCRS-1.0 6-Dimension Breakdown
Supports pip list --format=json, pip install --dry-run --report - JSON plans, --no-input, and --no-color, though regular install logs are verbose text.
pip list --format=jsonandpip install --report -emit structured JSON- Supports
--no-inputand--no-colorglobally
Supports --dry-run and --require-hashes, though installing source distributions executes arbitrary setup.py / PEP 517 build code and running outside a venv can break system Python.
pip install --dry-runpreviews resolution safely- Sdist builds run arbitrary package build hooks
Bundled with almost every Python distribution across macOS, Linux, and Windows, though tied to an existing Python interpreter.
- Included via
ensurepipacross standard Python installations
Universal baseline compatibility across Python tooling, though noticeably slower at dependency resolution than uv.
- Works across virtually all Python environments; slower cold resolution than
uv
Official PyPA foundation tool (pypa/pip) under MIT license.
- Maintained by PyPA (
pypa/pip)
Extensive official CLI documentation at pip.pypa.io and detailed --help.
- Full command reference at pip.pypa.io
Security, Auth & Guardrails
Public PyPI installs need no auth; private indexes read credentials from pip.conf, .netrc, keyring, or index URLs.
MIT open-source CLI maintained by PyPA; free to use.
# pip Agent Rules - Always invoke `python3 -m pip` inside an active virtualenv to avoid mutating system Python. - Pass `--no-input` and use `--dry-run --report -` when previewing dependency resolution.
Agent-Ready Command Recipes
Safe Read-Only Queries
python3 -m pip list --format=json
Emits installed package names and versions as a JSON array without modifying the environment.
python3 -m pip install --dry-run --ignore-installed --report - -r requirements.txt
Resolves dependencies and writes a structured JSON installation report to stdout without installing anything.
Controlled Writes & Previews
python3 -m pip install --no-input --no-color -r requirements.txt
Installs dependencies inside the active virtualenv while suppressing interactive prompts and ANSI escapes.
Strengths for Agents
- + Ubiquitous baseline across Python virtualenvs, containers, and CI images.
- +
pip list --format=jsonandpip install --dry-run --report -provide structured JSON inspection. - + Supports
--no-input,--no-color, and--require-hashesfor reproducible automation.
Caveats & Pitfalls
- ! No built-in lockfile format or automatic virtualenv isolation (unlike
uvorpoetry). - ! Significantly slower dependency resolution and installs than
uvon large requirement sets.