>>> import sklearn >>> print('The scikit-learn version is {}.'.format(sklearn.__version__)) The scikit-learn version is 0.24.1.