scikit-learn 1.7.0


pip install scikit-learn

  Latest version

Released: Jun 05, 2025


Meta
Requires Python: >=3.10

Classifiers

Intended Audience
  • Science/Research
  • Developers

License
  • OSI Approved :: BSD License

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

Wheel compatibility matrix

Platform CPython 3.10 CPython 3.11 CPython 3.12 CPython 3.13 CPython (additional flags: t) 3.13
macosx_10_13_x86_64
macosx_10_9_x86_64
macosx_12_0_arm64
manylinux2014_aarch64
manylinux2014_x86_64
manylinux_2_17_aarch64
manylinux_2_17_x86_64
win_amd64

Files in release

scikit_learn-1.7.0-cp310-cp310-macosx_10_9_x86_64.whl (11.2MiB)
scikit_learn-1.7.0-cp310-cp310-macosx_12_0_arm64.whl (10.2MiB)
scikit_learn-1.7.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (11.6MiB)
scikit_learn-1.7.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.3MiB)
scikit_learn-1.7.0-cp310-cp310-win_amd64.whl (10.2MiB)
scikit_learn-1.7.0-cp311-cp311-macosx_10_9_x86_64.whl (11.2MiB)
scikit_learn-1.7.0-cp311-cp311-macosx_12_0_arm64.whl (10.2MiB)
scikit_learn-1.7.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (11.7MiB)
scikit_learn-1.7.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.3MiB)
scikit_learn-1.7.0-cp311-cp311-win_amd64.whl (10.2MiB)
scikit_learn-1.7.0-cp312-cp312-macosx_10_13_x86_64.whl (11.1MiB)
scikit_learn-1.7.0-cp312-cp312-macosx_12_0_arm64.whl (10.2MiB)
scikit_learn-1.7.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (11.3MiB)
scikit_learn-1.7.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.9MiB)
scikit_learn-1.7.0-cp312-cp312-win_amd64.whl (10.2MiB)
scikit_learn-1.7.0-cp313-cp313-macosx_10_13_x86_64.whl (11.0MiB)
scikit_learn-1.7.0-cp313-cp313-macosx_12_0_arm64.whl (10.1MiB)
scikit_learn-1.7.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (11.2MiB)
scikit_learn-1.7.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.9MiB)
scikit_learn-1.7.0-cp313-cp313-win_amd64.whl (10.2MiB)
scikit_learn-1.7.0-cp313-cp313t-macosx_10_13_x86_64.whl (11.6MiB)
scikit_learn-1.7.0-cp313-cp313t-macosx_12_0_arm64.whl (10.8MiB)
scikit_learn-1.7.0-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.8MiB)
scikit_learn-1.7.0-cp313-cp313t-win_amd64.whl (11.0MiB)
scikit_learn-1.7.0.tar.gz (6.8MiB)
Extras:
Dependencies:
numpy (>=1.22.0)
scipy (>=1.8.0)
joblib (>=1.2.0)
threadpoolctl (>=3.1.0)