Skip to main content
`Ctrl`+`K`

# numpy.distutils.ccompiler.CCompiler_get_version

distutils.ccompiler.CCompiler_get_version(self, force=False, ok_status=[0])

  Return compiler version, or None if compiler is not available.

  Parameters:
    force bool, optional

      If True, force a new determination of the version, even if the compiler already has a version attribute. Default is False.

    ok_status list of int, optional

      The list of status values returned by the version look-up process for which a version string is returned. If the status value is not in ok_status, None is returned. Default is `[0]`.

  Returns:
    version str or None

      Version string, in the format of `distutils.version.LooseVersion`.