Verify itk version on python console


Is there a way to verify the version of itk loaded in a python script ?


import itk
print( itk.Version.GetITKVersion() )

Indeed… Thanks!

1 Like

To further elaborate on my rather terse first reply, you can take a look at the definition of the Version class on ITK’s Doxygen,

There are some other methods for getting the Major or Minor versions or the Build version, if you want something more specific.

1 Like