pip install sklearn==0.22.1 code example
Example 1: install sklearn
pip install scikit-learn
Example 2: install sklearn
sudo pip3 install scikit-learn
Example 3: how to update sklearn
conda config --append channels conda-forge
conda install scikit-learn=0.19.2