Skip to content

Instantly share code, notes, and snippets.

@batok
Created August 2, 2010 15:04
Show Gist options
  • Save batok/504776 to your computer and use it in GitHub Desktop.
Save batok/504776 to your computer and use it in GitHub Desktop.
from pip.util import get_installed_distributions
whatIwant = False # set this to True if in a virtualenv
for x in get_installed_distributions(local_only = whatIwant):
print x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment