python scikitlearninstall code example Example 1: install sklearn pip install scikit-learn Example 2: conda install sklearn 0.20 conda install scikit-learn=0.20