def get_installed_packages():
 return [x.key for x in filter((lambda y: (where_am_i not in y.location)), pkg_resources.working_set)]

def get_installed_packages ( ) : return [ x . key for x in filter ( ( lambda y : ( where_am_i not in y . location ) ) , pkg_resources . working_set ) ]
avoid depending on pip for this task .