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