How can I see all packages that depend on a certain package with PIP?

Viewed 9656

I would like to see a list of packages that depend on a certain package with PIP. That is, given django, I would like to see django-cms, django-filer, because I have these packages installed and they all have django as dependency.

5 Answers

Since version 10, pip show also includes a "Required-by" entry. So just

pip show <package_name>

is enough nowadays. Or possibly

pip show <package_name> | grep ^Required-by

if you want to get just that single line for a script or whatever.

Related