How to install and check the version of Scikit-Learn on your machine

The most frequently used library in machine learning is scikit-learn. It consists of various features like regression, SVM, train test split, classification, clustering algorithms, etc. In this tutorial, we will learn how to install and check the version of scikit-version on your machine.

How to install and check the version of Scikit-Learn

Installation:

Basic requirement for installation includes Python(version >= 2.6 or >= 3.3).

Windows and Linux:

The following command will install Scikit-Learn in the windows and Linux operating system,

pip install -U scikit-learn

Mac OSX:

The following command will install Scikit-Learn in the Mac OSX,

pip install -U numpy scipy scikit-learn

Checking the version of Scikit-Learn:

The following python code helps to check the version of Scikit-Learn on your machine,

import sklearn
print(sklearn.__version__)
1.0.2

In this way, we can install and find the version of Scikit-Learn. I hope it might be helpful for you. Thank you!

Also read:

Leave a Reply

Your email address will not be published.