As suggested by @fsimonis, we can use `pip freeze` to get a tree of all dependencies used in a venv: https://pip.pypa.io/en/stable/cli/pip_freeze/