pip3 install sklearn code example
Example 1: install sklearn
pip install scikit-learn
Example 2: sklearn python install
pip install scikit-learn
#install with conda (anaconda)
conda install -c anaconda scikit-learn
Example 3: install sklearn
sudo pip3 install scikit-learn
Example 4: sklearn version
import nltk
import sklearn
print('The nltk version is {}.'.format(nltk.__version__))
print('The scikit-learn version is {}.'.format(sklearn.__version__))
# The nltk version is 3.0.0.
# The scikit-learn version is 0.15.2.