The numpy.version submodule includes several constants that expose more detailed information about the exact version of the installed numpy package:
Version string for the installed package - matches numpy.__version__.
Version string - the same as numpy.version.version.
Version string without any local build identifiers.
>>> np.__version__ '2.1.0.dev0+git20240319.2ea7ce0' # may vary >>> np.version.short_version '2.1.0.dev0' # may vary
String containing the git hash of the commit from which numpy was built.
True if this version is a numpy release, False if a dev version.
© 2005–2024 NumPy Developers
Licensed under the 3-clause BSD License.
https://numpy.org/doc/2.4/reference/routines.version.html