def pip_get_installed():
    """Code extracted from the middle of the pip freeze command.
    FIXME: does not list anything installed via -e
    """
    from pip._internal.utils.misc import dist_is_local

    return tuple(
        dist_to_req(dist)
        for dist in fresh_working_set()
        if dist_is_local(dist)
        if dist.key != 'python'  # See #220
    )
def pip_get_installed ( ) : from pip . _internal . utils . misc import dist_is_local return tuple ( dist_to_req ( dist ) for dist in fresh_working_set ( ) if dist_is_local ( dist ) if dist . key != 'python' )
Code extracted from the middle of the pip freeze command.
    FIXME: does not list anything installed via -e