scikit-learn 1.7.2


pip install scikit-learn

  Latest version

Released: Sep 09, 2025


Meta
Maintainer: scikit-learn developers
Requires Python: >=3.10

Classifiers

Intended Audience
  • Science/Research
  • Developers

Programming Language
  • Python :: 3
  • Python :: 3.10
  • Python :: 3.11
  • Python :: 3.12
  • Python :: 3.13
  • Python :: Implementation :: CPython

Topic
  • Software Development
  • Scientific/Engineering

Development Status
  • 5 - Production/Stable

Operating System
  • Microsoft :: Windows
  • POSIX
  • Unix
  • MacOS

Azure Codecov CircleCI Nightly wheels Ruff PythonVersion PyPi DOI Benchmark

https://raw.githubusercontent.com/scikit-learn/scikit-learn/main/doc/logos/scikit-learn-logo.png

scikit-learn is a Python module for machine learning built on top of SciPy and is distributed under the 3-Clause BSD license.

The project was started in 2007 by David Cournapeau as a Google Summer of Code project, and since then many volunteers have contributed. See the About us page for a list of core contributors.

It is currently maintained by a team of volunteers.

Website: https://scikit-learn.org

Installation

Dependencies

scikit-learn requires:

  • Python (>= 3.10)

  • NumPy (>= 1.22.0)

  • SciPy (>= 1.8.0)

  • joblib (>= 1.2.0)

  • threadpoolctl (>= 3.1.0)


Scikit-learn plotting capabilities (i.e., functions start with plot_ and classes end with Display) require Matplotlib (>= 3.5.0). For running the examples Matplotlib >= 3.5.0 is required. A few examples require scikit-image >= 0.19.0, a few examples require pandas >= 1.4.0, some examples require seaborn >= 0.9.0 and plotly >= 5.14.0.

User installation

If you already have a working installation of NumPy and SciPy, the easiest way to install scikit-learn is using pip:

pip install -U scikit-learn

or conda:

conda install -c conda-forge scikit-learn

The documentation includes more detailed installation instructions.

Changelog

See the changelog for a history of notable changes to scikit-learn.

Development

We welcome new contributors of all experience levels. The scikit-learn community goals are to be helpful, welcoming, and effective. The Development Guide has detailed information about contributing code, documentation, tests, and more. We’ve included some basic information in this README.

Source code

You can check the latest sources with the command:

git clone https://github.com/scikit-learn/scikit-learn.git

Contributing

To learn more about making a contribution to scikit-learn, please see our Contributing guide.

Testing

After installation, you can launch the test suite from outside the source directory (you will need to have pytest >= 7.1.2 installed):

pytest sklearn

See the web page https://scikit-learn.org/dev/developers/contributing.html#testing-and-improving-test-coverage for more information.

Random number generation can be controlled during testing by setting the SKLEARN_SEED environment variable.

Submitting a Pull Request

Before opening a Pull Request, have a look at the full Contributing page to make sure your code complies with our guidelines: https://scikit-learn.org/stable/developers/index.html

Project History

The project was started in 2007 by David Cournapeau as a Google Summer of Code project, and since then many volunteers have contributed. See the About us page for a list of core contributors.

The project is currently maintained by a team of volunteers.

Note: scikit-learn was previously referred to as scikits.learn.

Help and Support

Documentation

Communication

Main Channels

Developer & Support

Social Media Platforms

Resources

Citation

If you use scikit-learn in a scientific publication, we would appreciate citations: https://scikit-learn.org/stable/about.html#citing-scikit-learn

1.7.2 Sep 09, 2025
1.7.1 Jul 18, 2025
1.7.0 Jun 05, 2025
1.7.0rc1 May 09, 2025
1.6.1 Jan 10, 2025
1.6.0 Dec 09, 2024
1.6.0rc1 Nov 15, 2024
1.5.2 Sep 11, 2024
1.5.1 Jul 03, 2024
1.5.0 May 21, 2024
1.5.0rc1 May 06, 2024
1.4.2 Apr 09, 2024
1.4.1.post1 Feb 16, 2024
1.4.0 Jan 18, 2024
1.4.0rc1 Dec 20, 2023
1.3.2 Oct 23, 2023
1.3.1 Sep 21, 2023
1.3.0 Jun 30, 2023
1.3.0rc1 Jun 15, 2023
1.2.2 Mar 09, 2023
1.2.1 Jan 24, 2023
1.2.0 Dec 08, 2022
1.2.0rc1 Nov 28, 2022
1.1.3 Oct 26, 2022
1.1.2 Aug 05, 2022
1.1.1 May 19, 2022
1.1.0 May 12, 2022
1.0.2 Dec 25, 2021
1.0.1 Oct 25, 2021
1.0 Sep 24, 2021
0.24.2 Apr 28, 2021
0.24.1 Jan 19, 2021
0.24.0 Dec 22, 2020
0.23.2 Aug 04, 2020
0.23.1 May 19, 2020
0.23.0 May 12, 2020
0.22.2.post1 Mar 04, 2020
0.22.2 Feb 28, 2020
0.22.1 Jan 02, 2020
0.22 Dec 03, 2019
0.21.3 Jul 30, 2019
0.21.2 May 24, 2019
0.21.1 May 15, 2019
0.21.0 May 10, 2019
0.20.4 Jul 30, 2019
0.20.3 Mar 01, 2019
0.20.2 Dec 19, 2018
0.20.1 Nov 23, 2018
0.20.0 Sep 26, 2018
0.19.2 Jul 15, 2018
0.19.1 Oct 23, 2017
0.19.0 Aug 11, 2017
0.18.2 Jun 21, 2017
0.18.1 Nov 13, 2016
0.18 Sep 28, 2016
0.17.1 Feb 18, 2016
0.17 Nov 05, 2015
0.16.1 Apr 14, 2015
0.16.0 Mar 27, 2015
0.15.2 Sep 05, 2014
0.15.1 Aug 01, 2014
0.15.0 Jul 15, 2014
0.14.1 Aug 09, 2013
0.14 Aug 09, 2013
0.13.1 Feb 23, 2013
0.13 Jan 21, 2013
0.12.1 Oct 08, 2012
0.12 Sep 04, 2012
0.11 May 08, 2012
0.10 Jan 11, 2012
0.9 Sep 22, 2011
0.9.win32 Sep 24, 2011
0.19.1.win32 Oct 23, 2017
0.19.1.win Oct 23, 2017
0.18.win32 Sep 28, 2016
0.18.win Sep 28, 2016
0.18.2.win32 Jun 21, 2017
0.18.2.win Jun 21, 2017
0.18.1.win32 Nov 13, 2016
0.18.1.win Nov 13, 2016
0.17.win32 Nov 05, 2015
0.17.win Nov 05, 2015
0.17.1.win32 Feb 18, 2016
0.17.1.win Feb 18, 2016
0.16.1.win32 Apr 14, 2015
0.16.1.win Apr 14, 2015
0.16.0.win32 Mar 27, 2015
0.16.0.win Mar 27, 2015
0.15.2.win32 Sep 05, 2014
0.15.2.win Sep 05, 2014
0.15.1.win32 Aug 01, 2014
0.15.1.win Aug 01, 2014
0.15.0.win32 Jul 15, 2014
0.15.0.win Jul 15, 2014
0.14.1.win32 Aug 09, 2013
0.13.win32 Jan 21, 2013
0.13.1.win32 Feb 24, 2013
0.12.win32 Sep 04, 2012
0.12.1.win32 Oct 09, 2012
0.11.win32 May 08, 2012
0.10.win32 Jan 27, 2012

Wheel compatibility matrix

Platform CPython 3.10 CPython 3.11 CPython 3.12 CPython 3.13 CPython 3.14 CPython (additional flags: t) 3.13
macosx_10_13_x86_64
macosx_10_9_x86_64
macosx_12_0_arm64
manylinux2014_x86_64
manylinux_2_17_x86_64
manylinux_2_27_aarch64
manylinux_2_28_aarch64
win_amd64

Files in release

scikit_learn-1.7.2-cp310-cp310-macosx_10_9_x86_64.whl (8.9MiB)
scikit_learn-1.7.2-cp310-cp310-macosx_12_0_arm64.whl (8.3MiB)
scikit_learn-1.7.2-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (9.2MiB)
scikit_learn-1.7.2-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (9.0MiB)
scikit_learn-1.7.2-cp310-cp310-win_amd64.whl (8.5MiB)
scikit_learn-1.7.2-cp311-cp311-macosx_10_9_x86_64.whl (8.9MiB)
scikit_learn-1.7.2-cp311-cp311-macosx_12_0_arm64.whl (8.2MiB)
scikit_learn-1.7.2-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (9.3MiB)
scikit_learn-1.7.2-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (9.1MiB)
scikit_learn-1.7.2-cp311-cp311-win_amd64.whl (8.5MiB)
scikit_learn-1.7.2-cp312-cp312-macosx_10_13_x86_64.whl (8.8MiB)
scikit_learn-1.7.2-cp312-cp312-macosx_12_0_arm64.whl (8.2MiB)
scikit_learn-1.7.2-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (9.0MiB)
scikit_learn-1.7.2-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (8.9MiB)
scikit_learn-1.7.2-cp312-cp312-win_amd64.whl (8.3MiB)
scikit_learn-1.7.2-cp313-cp313-macosx_10_13_x86_64.whl (8.8MiB)
scikit_learn-1.7.2-cp313-cp313-macosx_12_0_arm64.whl (8.2MiB)
scikit_learn-1.7.2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (9.0MiB)
scikit_learn-1.7.2-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (8.9MiB)
scikit_learn-1.7.2-cp313-cp313-win_amd64.whl (8.3MiB)
scikit_learn-1.7.2-cp313-cp313t-macosx_10_13_x86_64.whl (9.1MiB)
scikit_learn-1.7.2-cp313-cp313t-macosx_12_0_arm64.whl (8.6MiB)
scikit_learn-1.7.2-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (9.1MiB)
scikit_learn-1.7.2-cp313-cp313t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (8.9MiB)
scikit_learn-1.7.2-cp313-cp313t-win_amd64.whl (8.8MiB)
scikit_learn-1.7.2-cp314-cp314-macosx_10_13_x86_64.whl (8.8MiB)
scikit_learn-1.7.2-cp314-cp314-macosx_12_0_arm64.whl (8.2MiB)
scikit_learn-1.7.2-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (9.0MiB)
scikit_learn-1.7.2-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (8.9MiB)
scikit_learn-1.7.2-cp314-cp314-win_amd64.whl (8.4MiB)
scikit_learn-1.7.2.tar.gz (6.9MiB)
Extras:
Dependencies:
numpy (>=1.22.0)
scipy (>=1.8.0)
joblib (>=1.2.0)
threadpoolctl (>=3.1.0)