python install sklarn code example Example 1: install sklearn pip install scikit-learn Example 2: how to update sklearn conda update scikit-learn