import pkg_resources


def python_package_version(package: str) -> str:
    """
    Determine the version of an installed Python package
    :param package: package name
    :return: version number, if could be determined, else ''
    """

    try:
        return pkg_resources.get_distribution(package).version
    except pkg_resources.DistributionNotFound:
        return ''