check scikit learn version code example
Example 1: version of scikit learn
In [3]: import sklearn
In [4]: sklearn.__version__
Out[4]: '0.19.0'
Example 2: how to know the version of sklearn
conda list scikit
scikit-learn 0.22.1 py37h6288b17_0