I used pipdeptree a few weeks ago, found it useful, then today I have the need for it again but forgot the name of it and had to look it up again, so now I wish more people would talk about this tool.

If you did pip freeze, you have lots of dependencies listed, and you don't even know how some of the dependencies got installed/where they come from: pipdeptree will tell you. 💡

#Python

@mariatta I love that tool 🙂 it's one of the ones I install with pipx so I always have it available

#Python

@mariatta so very useful. I use it frequently.
@mariatta very useful, and uv has copied it! https://github.com/astral-sh/uv/pull/3859
implement `uv pip tree` by ChannyClaus · Pull Request #3859 · astral-sh/uv

Summary resolves #3272 added it as a new subcommand rather than a flag on an existing command since that seems more consistent with cargo tree + cleaner code organization, but can make changes if ...

GitHub
Python package dependency checking in a CI pipeline with pipdeptree

Sometimes pip behaves rather oddly when it comes to package dependency resolution. Here’s one way to catch such issues in your CI pipeline.

xahteiwi.eu
@mariatta that sounds super useful, thank you!

@mariatta

Packages still depending on six (via "pipdeptree --reverse -p six"):

asttokens
bleach
fire
html5lib
ics
isodate
lplight
Mastodon.py
python-coveralls
python-dateutil

#python #six #python2 #pipdeptree

@hugovk @mariatta Time between me discovering a tool, installin git from pip, finding a bug, installing it from source to check it isn't fixed, and opening a bug report: < 10 minutes 

@mariatta I have an alias to install it in my virtual environments 😉

alias ptools='pip install pip-tools pipdeptree'

@fcodvpt @mariatta That's the way to do it. Though I usually have to remind myself of what I called the alias. So I always echo a custom help file when I start a session.

@mariatta unnecessary.

One virtualenv, one app.

Having all ur apps in one virtualenv I used to do it. But it's nonsense

Thanks for raising awareness

@mariatta i should be more open minded. The pipdeptree looks like a nice improvement over just pip.

pip-compile produces the requirements.txt file too. Nice to have another tool. Backup tools ftw

Why not right?