install sklearn in conda code example
Example 1: install sklearn with conda
conda install scikit-learn
Example 2: sklearn version
import nltk
import sklearn
print('The nltk version is {}.'.format(nltk.__version__))
print('The scikit-learn version is {}.'.format(sklearn.__version__))
Example 3: how to update sklearn
conda config --append channels conda-forge
conda install scikit-learn=0.19.2
Example 4: conda install sklearn
python3 -m venv sklearn-venvpython -m venv sklearn-venvpython -m venv sklearn-venvsource sklearn-venv/bin/activatesource sklearn-venv/bin/activatesklearn-venv\Scripts\activatepip install -U scikit-learnpip install -U scikit-learnpip install -U scikit-learnpip3 install -U scikit-learnconda create -n sklearn-envconda activate sklearn-envconda install scikit-learn