pip install cmd for scikit learn code example
Example 1: version of scikit learn
In [3]: import sklearn
In [4]: sklearn.__version__
Out[4]: '0.19.0'
Example 2: install sklearn
sudo pip3 install scikit-learn
In [3]: import sklearn
In [4]: sklearn.__version__
Out[4]: '0.19.0'
sudo pip3 install scikit-learn