Skip to main content

Command line utility to show dependency tree of packages.

Project description

pipdeptree

PyPI PyPI - Python Version Downloads Documentation PyPI - License check

A command-line utility for displaying installed Python packages as a dependency tree. While pip freeze shows a flat list, pipdeptree reveals which packages are top-level and what they depend on, including conflicting or circular dependencies.

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 out why a package is installed:

pipdeptree --reverse --packages markupsafe

Output as JSON, Mermaid, or Graphviz:

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

Get a one-block environment health report (counts, depth, conflicts, cycles, licenses, 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 (needs the index extra), or read an already-resolved PEP 751 lock offline:

pip install pipdeptree[index]
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

Every render flag above, including --summary, works with both subcommands.

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

Project details


Release history Release notifications | RSS feed

This version

3.1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pipdeptree-3.1.0.tar.gz (119.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pipdeptree-3.1.0-py3-none-any.whl (72.4 kB view details)

Uploaded Python 3

File details

Details for the file pipdeptree-3.1.0.tar.gz.

File metadata

  • Download URL: pipdeptree-3.1.0.tar.gz
  • Upload date:
  • Size: 119.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for pipdeptree-3.1.0.tar.gz
Algorithm Hash digest
SHA256 52ecadd6e0dd95aaf61e83ed2810a9ba6af3154482583149d0e8bb0c1b6d7c46
MD5 ee1d79831727f2ff10a28dff3427295b
BLAKE2b-256 46776589d08fecd19365164e4c963177d8a8f70f0784fb22d9a2504a9e118d5c

See more details on using hashes here.

Provenance

The following attestation bundles were made for pipdeptree-3.1.0.tar.gz:

Publisher: release.yaml on tox-dev/pipdeptree

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pipdeptree-3.1.0-py3-none-any.whl.

File metadata

  • Download URL: pipdeptree-3.1.0-py3-none-any.whl
  • Upload date:
  • Size: 72.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for pipdeptree-3.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8b525aa1d0ef96dbe8a95b9f526984ed6d055a9c2035a48d33c8bb57bbfc585a
MD5 42aa662b15a7b6523f0aa72607538d68
BLAKE2b-256 5f1af18780c37434637d6d07f464a0eff0efbff81ee4d772248aac7bf755a202

See more details on using hashes here.

Provenance

The following attestation bundles were made for pipdeptree-3.1.0-py3-none-any.whl:

Publisher: release.yaml on tox-dev/pipdeptree

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page