code: def freeze():
      '''
      Show arguments to require() to recreate what has been installed
      '''
      installations = {}
      for dist in get_installed_distributions():
          req = pip.FrozenRequirement.from_dist(dist, [], find_tags=False)
          installations[req.name] = req
  
      return [str(installation).rstrip() for installation in
          sorted(installations.values(), key=lambda x: x.name.lower())f freeze():
      '''
      Show arguments to require() to recreate what has been installed
      '''
      installations = {}
      for dist in get_installed_distributions():
          req = pip.FrozenRequirement.from_dist(dist, [], find_tags=False)
          installations[req.name] = req
  
      return [str(installation).rstrip() for installation in
          sorted(installations.values(), key=lambda x: x.name.lower())]
docs: Show arguments to require() to recreate what has been installed