Skip to main content

pip-review

pip-review checks packages in the active Python environment and can upgrade them through pip.

Installation​

Install it in the virtual environment you want to review:

python -m pip install pip-review

Use python -m pip_review when multiple Python installations are available:

python -m pip_review

Review updates​

List available package updates without changing the environment:

pip-review

Show the same update list in pip list --outdated table format:

pip-review --preview-only

Upgrade packages​

Review every update before installing it:

pip-review --interactive

Upgrade all available packages without prompts:

pip-review --auto

pip-review also considers updates for pip and itself. Prefer --interactive for environments with application dependencies, and test the updated environment before deployment.

Keep packages pinned​

Use a constraints file to prevent selected packages from being upgraded automatically:

cat > constraints.txt <<'EOF'
pyarrow==0.14.1
pandas<0.24.0
EOF

PIP_CONSTRAINT="$PWD/constraints.txt" pip-review --auto