Install Scikit Learn in Pycharm

How to Install Scikit Learn in Pycharm ? Only 5 Steps

Scikit Learn is the popular python library for building a machine learning model. Its features are classification, regression, clustering algorithms. You can use it for data preprocessing, Hot encoding and many things using it. I have seen the new programmers who want to learn machine learning are unable to install Scikit learn properly. In this tutorial of “How to,” you will learn how to install Scikit Learn in Pycharm ? You have to just follow the simple steps for easy installation.

How to Check Scikit Learn is Installed or not?

If you write import sklearn you will see the underline with red color. It means that you have not installed scikit learn in Pycharm. Below are the steps you have to follow for the successful installation.

import sklearn error

Steps to Install Scikit Learn in Pycharm

Step 1 : Go to File and Click on the Setting.

Step 2:  There you will see the Project: your_project_name. Click on it and then project an interpreter.

project interpreter window

Step 3: You will see all the list of installed packages in the current project. There you will not see scikit learn packages. You have to search and install it.

Step 4: Click on + icon right side of the step3 window and type scikit learn in the search window. When you get the scikit-learn package select it and click on install packages. It will successfully install the packages.

search scikit learn

Step 5: If you are getting error like the below then the final step is to install the sklearn using the terminal .

scikit learn installation error

Step 6:  Go the terminal of the Pycharm and use the pip command to install the scikit learn.

pip install scikit-learn

It will successfully install the scikit- learn package in Pycharm.

install scikit-learn using pip

How to test Installation of Scikit Learn ?

After the installation using the above steps To check whether scikit learn is installed or not. You can use the following code and run it.

import sklearn
print(sklearn.__version__)

check the version of the installed scikit learn

Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for signup. A Confirmation Email has been sent to your Email Address.

Something went wrong.

 
Thank you For sharing.We appreciate your support. Don't Forget to LIKE and FOLLOW our SITE to keep UPDATED with Data Science Learner