Jump to content

Connect SuperML | Leeroopedia MCP: Equip your AI agents with best practices, code verification, and debugging knowledge. Powered by Leeroo — building Organizational Superintelligence. Contact us at founders@leeroo.com.

Implementation:Scikit learn Scikit learn ShowVersions

From Leeroopedia


Knowledge Sources
Domains Machine Learning, Debugging
Last Updated 2026-02-08 15:00 GMT

Overview

Concrete tool for printing system information and dependency versions for debugging, provided by scikit-learn.

Description

The sklearn.utils._show_versions module provides utility methods to print system information useful for debugging. It includes functions to gather system info (_get_sys_info), dependency versions (_get_deps_info), and a main show_versions function that outputs version information for Python, scikit-learn, and key dependencies like NumPy, SciPy, Cython, pandas, matplotlib, joblib, and threadpoolctl.

Usage

Use this utility when filing bug reports or diagnosing environment-related issues with scikit-learn. It provides a quick snapshot of the runtime environment.

Code Reference

Source Location

Signature

def _get_sys_info():
def _get_deps_info():
def show_versions():

Import

from sklearn import show_versions

I/O Contract

Inputs

Name Type Required Description
(none) N/A N/A No parameters required

Outputs

Name Type Description
(printed output) str System info and dependency versions printed to stdout

Usage Examples

Basic Usage

from sklearn import show_versions

show_versions()
# Prints system info, Python version, and versions of
# scikit-learn, numpy, scipy, and other dependencies

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment