install specific version of sklearn 0.22.1 code example
Example 1: install sklearn
pip install scikit-learn
Example 2: conda install sklearn 0.20
conda install scikit-learn=0.20
pip install scikit-learn
conda install scikit-learn=0.20