def guess_version_by_running_live_package(
    pkg_key, default="?"
):  # type: (str,str) -> Any
    """Guess the version of a pkg when pip doesn't provide it.

    :param str pkg_key: key of the package
    :param str default: default version to return if unable to find
    :returns: version
    :rtype: string

    """
    try:
        m = import_module(pkg_key)
    except ImportError:
        return default
    else:
        return getattr(m, "__version__", default)