{"id":1040,"hash":"f658cb9b729933bea4698ce27997296ce30826b77ad762967d30ae8b8b05f574","pattern":"ModuleNotFoundError: No module named &#39;sklearn&#39;","full_message":"I want to import scikit-learn, but there isn't any module apparently:\n\nModuleNotFoundError: No module named 'sklearn'\n\nI am using Anaconda and Python 3.6.1.\n\nWhen I use the command:\nconda install scikit-learn, should this not just work?\n\nWhere does Anaconda install the package?\n\nI was checking the frameworks in my Python library, and there was nothing about sklearn, only NumPy and SciPy.","ecosystem":"pypi","package_name":"scikit-learn","package_version":null,"solution":"You can just use pip for installing packages, even when you are using Anaconda:\n\npip install -U scikit-learn scipy matplotlib\n\nThis should work for installing the package.\n\nAnd for Python 3.x, just use pip3:\n\npip3 install -U scikit-learn scipy matplotlib","confidence":0.95,"source":"stackoverflow","source_url":"https://stackoverflow.com/questions/46113732/modulenotfounderror-no-module-named-sklearn","votes":242,"created_at":"2026-04-19T04:52:13.798682+00:00","updated_at":"2026-04-19T04:52:13.798682+00:00"}