pipdeptree

2.34.0 · active · verified Thu Apr 09

pipdeptree is a command-line utility that displays the installed Python packages in a dependency tree format. It helps visualize package relationships and identify issues like duplicate or conflicting dependencies. Maintained by the tox-dev team, it is actively developed with frequent minor releases, currently at version 2.34.0.

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to install pipdeptree in a virtual environment and use it to display a dependency tree. It shows basic output, JSON output, and filtering by depth. Ensure you activate your virtual environment before running `pipdeptree`.

pip install virtualenv
python -m venv .venv
source .venv/bin/activate
pip install requests
pipdeptree
# Display as JSON
pipdeptree --output=json
# Display only top-level packages (depth 1)
pipdeptree --depth 1

view raw JSON →