SKLearner Home | About | Contact | Examples

Check Scikit-Learn Version

Checking the installed version of scikit-learn is often necessary to ensure compatibility with your Python environment and other dependencies. This procedure works across Windows, macOS, and Linux.

To check the version of scikit-learn, simply import the sklearn library and print the __version__ attribute:

import sklearn
print(sklearn.__version__)

Running the example gives an output like:

1.5.0


See Also