Version information#
Thenumpy.version submodule includes several constants that expose moredetailed information about the exact version of the installednumpypackage:
- numpy.version.version#
Version string for the installed package - matches
numpy.__version__.
- numpy.version.full_version#
Version string - the same as
numpy.version.version.
- numpy.version.short_version#
Version string without any local build identifiers.
Examples
>>>np.__version__'2.1.0.dev0+git20240319.2ea7ce0' # may vary>>>np.version.short_version'2.1.0.dev0' # may vary
- numpy.version.git_revision#
String containing the git hash of the commit from which
numpywas built.
- numpy.version.release#
Trueif this version is anumpyrelease,Falseif a dev version.
On this page