pip install scikit-learn 0.20 code example Example 1: install sklearn pip install scikit-learn Example 2: install sklearn sudo pip3 install scikit-learn