tox-dev/pipdeptree

A command line utility to display dependency tree of the installed Python packages

Rust

3,025

754 commits

updated Oct 3, 2026

See the code

README

pipdeptree

PyPI PyPI - Python Version Downloads Documentation PyPI - License check

pipdeptree displays installed Python packages as a dependency tree. pip freeze shows a flat list; pipdeptree adds parent-child relationships and reports dependency conflicts or cycles.

Quick start

pip install pipdeptree
pipdeptree
Flask==0.10.1
┣━━ ✓ itsdangerous required: >=0.21 installed: 0.24
┣━━ ✓ Jinja2 required: >=2.4 installed: 2.11.2
┃   ┗━━ ⚠ MarkupSafe required: >=0.23 installed: 0.22
┗━━ ✓ Werkzeug required: >=0.7 installed: 0.11.2

Find packages that require a dependency:

pipdeptree --reverse --packages markupsafe

Output as JSON, Mermaid, or Graphviz:

pipdeptree -o json
pipdeptree -o mermaid
pipdeptree -o graphviz-svg > deps.svg

Report package counts, depth, conflicts, cycles, licenses and size:

pipdeptree --summary           # aligned text
pipdeptree --summary -o rich   # styled table
pipdeptree --summary -o json   # machine-readable

Inspect a tree without installing it. Resolve requirements against a package index, or read a resolved PEP 751 lock offline:

pipdeptree from-index "flask"          # i is a shorthand alias
pipdeptree from-index --requirements requirements.txt
pipdeptree from-lock pylock.toml       # l is a shorthand alias

The render flags above, including --summary, work with both subcommands.

For the full documentation, visit pipdeptree.readthedocs.io.

dependency-graph
pip
python

Significant stargazers

(top 24 of 38)

Hugo van Kemenade

1,168 followers · starred Jun 2021

Marco Edward Gorelli

687 followers · starred Dec 2022

anatoly techtonik

100 followers · starred Jun 2015

Jannis Leidel

2,690 followers · starred Oct 2015

tox-dev/pipdeptree

A command line utility to display dependency tree of the installed Python packages

Rust

3,025

754 commits

updated Oct 3, 2026

See the code

README

pipdeptree

PyPI PyPI - Python Version Downloads Documentation PyPI - License check

pipdeptree displays installed Python packages as a dependency tree. pip freeze shows a flat list; pipdeptree adds parent-child relationships and reports dependency conflicts or cycles.

Quick start

pip install pipdeptree
pipdeptree
Flask==0.10.1
┣━━ ✓ itsdangerous required: >=0.21 installed: 0.24
┣━━ ✓ Jinja2 required: >=2.4 installed: 2.11.2
┃   ┗━━ ⚠ MarkupSafe required: >=0.23 installed: 0.22
┗━━ ✓ Werkzeug required: >=0.7 installed: 0.11.2

Find packages that require a dependency:

pipdeptree --reverse --packages markupsafe

Output as JSON, Mermaid, or Graphviz:

pipdeptree -o json
pipdeptree -o mermaid
pipdeptree -o graphviz-svg > deps.svg

Report package counts, depth, conflicts, cycles, licenses and size:

pipdeptree --summary           # aligned text
pipdeptree --summary -o rich   # styled table
pipdeptree --summary -o json   # machine-readable

Inspect a tree without installing it. Resolve requirements against a package index, or read a resolved PEP 751 lock offline:

pipdeptree from-index "flask"          # i is a shorthand alias
pipdeptree from-index --requirements requirements.txt
pipdeptree from-lock pylock.toml       # l is a shorthand alias

The render flags above, including --summary, work with both subcommands.

For the full documentation, visit pipdeptree.readthedocs.io.

dependency-graph
pip
python

Significant stargazers

(top 24 of 38)

Hugo van Kemenade

1,168 followers · starred Jun 2021

Marco Edward Gorelli

687 followers · starred Dec 2022

anatoly techtonik

100 followers · starred Jun 2015

Jannis Leidel

2,690 followers · starred Oct 2015

Languages

Rust

86.5%

Python

13.0%