ModuleNotFoundError: No module named 'scikit'

江枫思渺然 提交于 2021-02-11 15:19:11

问题


I am trying to import sklearn in my jupyter notebook on a macOS Mojave 10.14.3. macOS comes standard with python 2.7. I have installed python3 in addition python 2.7. I am launching jupyter from a virtual env with python3. When I launch jupyter and open a notebook it shows it is running python 3.7.x. When I list "!pip show scipy" from inside the notebook it says scipy 1.2.1 is installed. Still, with all the above, when I say "import scikit" or "import sklearn" I get a ModuleNotFoundError: No module named 'xxxxx' error. xxxx = scikit or sklearn. Any help is appreciated.

来源:https://stackoverflow.com/questions/54718912/modulenotfounderror-no-module-named-scikit

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!