Command line utility to show dependency tree of packages.
Project Links
Meta
Maintainer: Bernát Gábor, Kemal Zebari, Vineet Naik
Requires Python: >=3.10
Classifiers
Development Status
- 5 - Production/Stable
Environment
- Console
Intended Audience
- Developers
Programming Language
- Python
- Python :: 3 :: Only
- Python :: 3.10
- Python :: 3.11
- Python :: 3.12
- Python :: 3.13
- Python :: 3.14
- Python :: 3.15
- Rust
pipdeptree
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.
4.1.0
Jul 21, 2026
4.0.0
Jul 20, 2026
3.1.1
Jul 03, 2026
3.1.0
Jun 03, 2026
3.0.0
Jun 03, 2026
2.35.3
May 17, 2026
2.35.2
May 01, 2026
2.35.1
Apr 10, 2026
2.35.0
Apr 10, 2026
2.34.0
Mar 23, 2026
2.33.0
Mar 21, 2026
2.32.0
Mar 19, 2026
2.31.0
Feb 20, 2026
2.30.0
Nov 12, 2025
2.29.0
Oct 10, 2025
2.28.0
Jul 20, 2025
2.27.0
Jul 11, 2025
2.26.1
Apr 20, 2025
2.26.0
Mar 24, 2025
2.25.1
Mar 11, 2025
2.25.0
Jan 26, 2025
2.24.0
Nov 26, 2024
2.23.4
Sep 17, 2024
2.23.3
Sep 07, 2024
2.23.2
Sep 07, 2024
2.23.1
Jul 12, 2024
2.23.0
Jun 17, 2024
2.22.0
Jun 03, 2024
2.21.0
May 20, 2024
2.20.0
May 07, 2024
2.19.1
Apr 29, 2024
2.19.0
Apr 28, 2024
2.18.1
Apr 13, 2024
2.18.0
Apr 10, 2024
2.17.0
Apr 04, 2024
2.16.2
Mar 25, 2024
2.16.1
Mar 04, 2024
2.16.0
Mar 02, 2024
2.15.1
Feb 24, 2024
2.15.0
Feb 23, 2024
2.14.0
Feb 15, 2024
2.13.2
Jan 10, 2024
2.13.1
Nov 09, 2023
2.13.0
Aug 14, 2023
2.12.0
Jul 30, 2023
2.11.0
Jul 22, 2023
2.10.2
Jul 17, 2023
2.10.1
Jul 17, 2023
2.10.0
Jul 15, 2023
2.9.6
Jul 14, 2023
2.9.5
Jul 11, 2023
2.9.4
Jul 07, 2023
2.9.3
Jun 16, 2023
2.9.2
Jun 15, 2023
2.9.1
Jun 14, 2023
2.9.0
Jun 07, 2023
2.8.0
Jun 06, 2023
2.7.1
May 11, 2023
2.7.0
Mar 25, 2023
2.6.0
Mar 18, 2023
2.5.2
Mar 04, 2023
2.5.1
Mar 03, 2023
2.5.0
Feb 18, 2023
2.4.0
Feb 17, 2023
2.3.3
Oct 30, 2022
2.3.2
Oct 30, 2022
2.3.1
Sep 08, 2022
2.3.0
Sep 06, 2022
2.2.1
Jan 09, 2022
2.2.0
Oct 12, 2021
2.1.0
Jul 31, 2021
2.0.0
Dec 25, 2020
2.0.0b1
Jun 13, 2020
1.0.0
Jun 13, 2020
0.13.2
Jan 23, 2019
0.13.1
Oct 08, 2018
0.13.0
Jul 01, 2018
0.12.1
Apr 15, 2018
0.12.0
Apr 15, 2018
0.11.0
Feb 24, 2018
0.10.1
Mar 19, 2017
0.10.0
Mar 19, 2017
0.9.0
Jan 07, 2017
0.8.0
Oct 23, 2016
0.7.0
Aug 21, 2016
0.6.0
Apr 09, 2016
0.5.0
Nov 14, 2015
0.4.3
Aug 03, 2015
0.4.2
Nov 18, 2014
0.4.1
Sep 25, 2014
0.4
Jun 22, 2014
0.3
May 11, 2014
0.2
Feb 05, 2014
0.1
Feb 05, 2014
Wheel compatibility matrix
| Platform | CPython >=3.10 (abi3) | CPython (additional flags: t) 3.14 | PyPy 3.11 (pp73) |
|---|---|---|---|
| macosx_10_15_x86_64 | |||
| macosx_11_0_arm64 | |||
| manylinux_2_28_x86_64 | |||
| musllinux_1_2_x86_64 | |||
| win_amd64 |
Files in release
pipdeptree-4.1.0-cp310-abi3-macosx_10_15_x86_64.whl (1.6MiB)
pipdeptree-4.1.0-cp310-abi3-macosx_11_0_arm64.whl (1.5MiB)
pipdeptree-4.1.0-cp310-abi3-manylinux_2_28_x86_64.whl (1.7MiB)
pipdeptree-4.1.0-cp310-abi3-musllinux_1_2_x86_64.whl (1.8MiB)
pipdeptree-4.1.0-cp310-abi3-win_amd64.whl (1.6MiB)
pipdeptree-4.1.0-cp314-cp314t-macosx_10_15_x86_64.whl (1.6MiB)
pipdeptree-4.1.0-cp314-cp314t-macosx_11_0_arm64.whl (1.5MiB)
pipdeptree-4.1.0-cp314-cp314t-manylinux_2_28_x86_64.whl (1.7MiB)
pipdeptree-4.1.0-cp314-cp314t-musllinux_1_2_x86_64.whl (1.8MiB)
pipdeptree-4.1.0-cp314-cp314t-win_amd64.whl (1.7MiB)
pipdeptree-4.1.0-pp311-pypy311_pp73-macosx_10_15_x86_64.whl (1.6MiB)
pipdeptree-4.1.0-pp311-pypy311_pp73-macosx_11_0_arm64.whl (1.5MiB)
pipdeptree-4.1.0-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl (1.7MiB)
pipdeptree-4.1.0-pp311-pypy311_pp73-win_amd64.whl (1.6MiB)
pipdeptree-4.1.0.tar.gz (132.0KiB)