Skip to content
Home » No module named ‘sklearn’

No module named ‘sklearn’

Let’s start the discussion about No module named ‘sklearn’ in following methods. You generally get this error when scikit-learn module is not present. Install sklearn using below command.

No module named ‘sklearn’

You generally get this error when scikit-learn module is not present. Firstly, install sklearn using below command. Run the below command in the terminal to install scikit-learn.

pip install scikit-learn

ModuleNotFoundError: No module named ‘sklearn’

For python 2 or below

pip install -U scikit-learn scipy matplotlib

For python 3:

pip3 install -U scikit-learn scipy matplotlib

I hope the strategies listed above work for you. Happy coding and come back again.

Similar Post : How to install sklearn