pythonscikit-learndata-sciencesklearn-pandas

How do I install sklearn module properly?


I'm trying to install sklearn module using pip command but after the installation is completed , all I can see is this folder

C:\Users\Aditi\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\sklearn-0.0-py3.8.egg-info 

In my directory and even the error says module name sklearn not found. I've tried reinstalling it many times but still I'm not able to see the main sklearn folder in the above directory.Only 1 folder is installed i.e sklearn-0.0-py3.8.egg-info .Can anyone please help?


Solution

  • Try to install using command pip install scikit-learn.

    If it still not work for you, you can update the numpy or reinstall the numpy.

    You can check here all the help related to installation and verifying the installation of scikit-learn