Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
P

pipdeptree

> 包管理
Open source

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

3.0K stars0 likes2 views
WebsiteGitHub

About

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

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

bash
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:

bash
pipdeptree --reverse --packages markupsafe

Output as JSON, Mermaid, or Graphviz:

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

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

bash
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:

bash
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.

  • Installation
  • Usage
  • Changelog
  • Issues
  • PyPI
  • GitHub

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rustdependency-graphpippython

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category包管理
PricingOpen source

> Related tools

N
npm
Node.js 默认包管理器
P
pnpm
高效节省磁盘的 Node 包管理器
I
is-gif
Check if a Buffer/Uint8Array is a GIF image