pipdeptree
display dependency tree of the installed Python 3 packages
Install
- All systems
-
curl cmd.cat/pipdeptree.sh
- Debian
-
apt-get install python3-pipdeptree
- Ubuntu
-
apt-get install python3-pipdeptree
- Kali Linux
-
apt-get install python3-pipdeptree
- Fedora
-
dnf install python3-pipdeptree
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install python3-pipdeptree
- Dockerfile
- dockerfile.run/pipdeptree
python3-pipdeptree
display dependency tree of the installed Python 3 packages
Pipdeptree is a command line utility for displaying the installed Python packages in form of a dependency tree. It works for packages installed globally on a machine as well as in a virtualenv. Since pip freeze shows all dependencies as a flat list, finding out which are the top level packages and which packages do they depend on requires some effort. It can also be tedious to resolve conflicting dependencies because pip doesn't yet have true dependency resolution (more on this later). This utility tries to solve this problem. To some extent, this tool is inspired by lein deps :tree command of Leiningen.