Skip to content

MNT Python 3.15 support #34652

Closed
Closed

Description

@lesteve

Warning

This issue is not yet ready for a PR. If you are interested in contributing to scikit-learn, please have a look at our contributing guidelines, and in particular the sections for new contributors and the "Needs triage" label.

Python 3.15 first rc was released, see release schedule.

Quick testing in loky seems to reveal that we may have some issues related to the resource manager which I think joblib/loky#472 may fix. Maybe that is not a problem for scikit-learn tests anyway.

Activity

  1. added
    Needs Investigation
    on Aug 5, 2026
  2. stonebig commented on Aug 22, 2026

    @stonebig

    scipy-1.18.1 is out with Python-3.15 wheels , today august 22nd

  3. lesteve commented on Aug 22, 2026

    @lesteve
    MemberAuthor

    Indeed so I guess numpy 2.5.2 and scipy 1.18.1 have Python 3.15 wheels. Quickly testing, the tests pass on my Linux machine, so I guess the next step is to do a PR in scikit-learn-release to test on all our supported platforms.

  4. cclauss commented on Sep 3, 2026

    @cclauss
    Contributor

    Status now that scikit-learn/scikit-learn-release#8 has been merged?

    Our project has tons of dependencies, and this is the only one that does not yet have Python 3.15 wheels.

  5. lesteve commented on Sep 3, 2026

    @lesteve
    MemberAuthor

    First, thanks for your PR on scikit-learn-release! Care to share which project you are talking about out of curiosity and what your main goal is (Python 3.15 early testing, having your project available on Python 3.15 as soon as possible, something else)?

    The easiest thing right now is to use our development wheels on scientific-python-nightly-wheels. As documented you can do:

    pip install --pre --extra-index https://pypi.anaconda.org/scientific-python-nightly-wheels/simple scikit-learn
    

    A number of other Scientific Python projects have development wheels on the same PyPI index: numpy, scipy, matplotlib, etc ...

    We are planning to do a scikit-learn 1.9.1 release in particular for Python 3.15 wheels, but it may take a couple of weeks before we get around doing it (maybe a bit more depending on external factors and unknown unknowns 😅).

  6. cclauss commented on Sep 3, 2026

    @cclauss
    Contributor

    https://github.com/TheAlgorithms/Python has 224k GitHub Stars and gets absolutely deluged at Hacktoberfest.

    We have very high standards for new algorithm submissions. All our algorithms are tested and run on the latest and greatest free-threaded CPython, which will be Python 3.15t just as Hacktoberfest starts.

    We are clearing our backlog of open pull requests so that on October 1 we can start with a clean slate and focus on incoming PRs.

    Our dependencies:
    https://github.com/TheAlgorithms/Python/blob/c1ad752917f9b9abf58496cac1796e850c8f3db9/pyproject.toml#L12-L64

  7. befeleme commented on Sep 4, 2026

    @befeleme

    Adding to that list with my use case: Fedora Linux 45 is going to be released in October with Python 3.15 as the main system interpreter, and I would love it for users to just be able to pip install scikit-learn to their systems/venvs on the day 1 it's available.

  8. lesteve commented on Sep 11, 2026

    @lesteve
    MemberAuthor

    scikit-learn 1.9.1 was released and has Python 3.15 wheels, closing this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs Investigation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions