Pip

Documentation

universions.pip.get_pip_version(path: Union[pathlib.Path, str, None] = None) → Optional[universions.version.Version]

Get the Pip version.

Parameters:path – The path to the Pip to check. If not defined, it uses “pip”
Returns:The Pip version.

Python example

>>> from universions.pip import get_pip_version
>>> get_pip_version()
Version(major=19, minor=3, patch=1, prerelease=None, build=None)

CLI example

>>> universions pip
19.3