see scikit learn version code example
Example: how to know the version of sklearn
conda list scikit
scikit-learn 0.22.1 py37h6288b17_0
conda list scikit
scikit-learn 0.22.1 py37h6288b17_0