Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Python: list of installed packages through easy_install / distutils
import pkg_resources
distros = pkg_resources.AvailableDistributions() # scan sys.path
for key in distros:
for dist in distros[key]:
print, dist.version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment