See a Python dependency tree without installing

A dependency tree shows direct and transitive (nested) dependencies. pip freeze is flat and hides that structure. For installed environments use pipdeptree or uv pip tree. To preview any Python package without installing, open it on PyDeps for an interactive list and graph — plus CVEs, licenses, dependents, and offline bundles on the same page.

Direct vs transitive

Installing requests also installs urllib3, certifi, and more. Security and license risk often live in that nested set.

CLI options

pipdeptree (installed env or from-index), uv pip tree, pipgrip, and johnnydep cover terminal workflows. PyDeps covers shareable browser exploration without a local install.

Try on PyDeps

Related