pipdeptree
https://pypi.org/project/pipdeptree/
Command line utility to show dependency tree of packages.
コマンドラインに出力する(requirements.txtとしては使えない)
あるパッケージが使われている大元のパッケージを調べるのに使った
例:pyparsing → packaging → pytorch-lightning
(曖昧)pip showでは使っているは分かる?使われているは分からない?
ここで知った:https://stackoverflow.com/a/39488113
#deptree の方がいいのかも
https://github.com/tox-dev/pipdeptree
If you wish to track only top level packages in your requirements.txt file, it's possible by grep-ing
IMO:pip freezeして作られたであろう requirements.txt をどうにか整理する話にも使えるかも