SKLearner Home | About | Contact | Examples

Upgrade Scikit-Learn with pip

scikit-learn can be easily upgraded to the latest version using pip, the standard package installer for Python.

pip is included by default with Python 2 starting with version 2.7.9, and with Python 3 starting with version 3.4. This upgrade process will work on Windows, macOS, and Linux.

To upgrade scikit-learn, simply run the following command in your terminal:

pip install -U scikit-learn

To confirm that scikit-learn was successfully upgraded, you can import it in a Python script or interactive shell and print out the version number:

import sklearn
print(sklearn.__version__)

Running the example gives an output like:

1.5.0


See Also