Skip to content
Evergreen Evergreen
Documentation

sklearn is deprecated on PyPI

Deprecated. The source gives no day. Replacement: scikit-learn. Source: sklearn deprecation notice.

Check a version:

evergreen check pkg:pypi/sklearn

The sklearn maintainers state that the PyPI package is deprecated and that scikit-learn is the actual distribution name.

Look up another package or runtime · <form action="../lookup.html" method="get" role="search"> </form>

   
Status Deprecated
Severity high
Ecosystem python
Component pkg:pypi/sklearn
Affected versions vers:pypi/*
Date from the source The source gives no day
Replacement scikit-learn
Evidence last seen 2026-10-16
Reviewed 2026-10-16 by arminazimi
Review due 2027-10-16 (365 days after the last review)
Rule ID python.package.sklearn.deprecated

Sources

Migration

Constraints

  • Keep Python imports as sklearn; only the distribution name used by installers and dependency metadata changes.

Steps

  1. Replace the distribution name. Replace sklearn with scikit-learn in dependency declarations and installation commands without renaming sklearn imports.
  2. Refresh the environment. Regenerate lock data and confirm the intended scikit-learn version resolves for every supported Python runtime.

Verification

  • python -m pip check: Check the resolved scikit-learn environment.
  • python -m pytest: Run model, preprocessing, and repository tests.

Detected by

The python detector. See Detectors and Compatibility.

Same ecosystem

Data

This page is generated from registry/python.json, rule python.package.sklearn.deprecated, in the ebb.registry.v2 format (how rules are written). A CLE (ECMA-428) export is not published yet. The same facts are embedded in this page as schema.org structured data.

Last updated