Verify itk version on python console

Hello,

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

Thanks

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

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,

https://itk.org/Doxygen50/html/classitk_1_1Version.html

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

1 Like