def get_package_version(package_name):
    'Get version of the given package.\n\n    :param package_name: Name of the package\n    :return:             Version of the package\n    '
    try:
        package_version = get_distribution(package_name).version
    except DistributionNotFound:
        package_version = 'not found'
    return package_version
Get version of the given package.

:param package_name: Name of the package
:return:             Version of the package
def get_package_version(package_name):
    'Get version of the given package.\n\n    :param package_name: Name of the package\n    :return:             Version of the package\n    '
    try:
        package_version = get_distribution(package_name).version
    except DistributionNotFound:
        package_version = 'not found'
    return package_version