When you install a Python PIP package using the pip tool, you will notice that it figures out if the package depends on other packages and installs them too. It is sometimes useful to know what is this tree of packages that a package depends on. pipdeptree is a tool that makes it easy to view this information.
$ sudo pip3 install pipdeptree
$ pipdeptree -p foobar
$ pipdeptree -r
$ pipdeptree --graph-output pdf > out.pdf
Tried with: Ubuntu 18.04