Skip to content

Instantly share code, notes, and snippets.

Embed
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.name, dist.version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.