I didnt find the answer in QuantLib library. This will surely help to get the track of quantlib version and installed package versions.
1 Answer
import QuantLib as ql
print(ql.__version__)
should work. There's also a ql.__hexversion__
attribute.