def _get_installed_version(name, installed_list):
    """Return installed version of package"""
    try:
        return [x for x in installed_list if x.name == name][0]
    except IndexError:
        return None