Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to view PIP dependencies using pipdeptree

📅 2019-Apr-25 ⬩ ✍️ Ashwin Nanjappa ⬩ 📚 Archive

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
$ pipdeptree -p foobar
$ pipdeptree -r
$ pipdeptree --graph-output pdf > out.pdf

Tried with: Ubuntu 18.04