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