pip install sklearn version code example
Example 1: install sklearn
pip install scikit-learn
Example 2: install sklearn
sudo pip3 install scikit-learn
Example 3: syntax to update sklearn
conda update scikit-learn
pip install scikit-learn
sudo pip3 install scikit-learn
conda update scikit-learn