from_name

classmethod NotFoundDistribution.from_name(name)

Return the Distribution for the given package name.

Parameters:

name – The name of the distribution package to search for.

Returns:

The Distribution instance (or subclass thereof) for the named package, if found.

Raises:

PackageNotFoundError – When the named package’s distribution metadata cannot be found.