简体   繁体   English

没有名为“ sklearn”的模块

[英]No Module named “sklearn”

I am trying to import 'sklearn' using Python 3.4.3 on a Raspberry Pi 3 running Raspian. 我正在尝试在运行Raspian的Raspberry Pi 3上使用Python 3.4.3导入'sklearn'。
I downloaded microconda3, which includes all the necessary modules to use scikit. 我下载了microconda3,其中包括使用scikit的所有必需模块。
However, when I attempt to import 'sklearn' in IDLE, I receive an error stating that there is no module named 'sklearn'. 但是,当我尝试在IDLE中导入“ sklearn”时,收到一条错误消息,指出没有名为“ sklearn”的模块。

Try starting fresh and reinstall all of the necessary modules through miniconda3. 尝试重新开始,然后通过miniconda3重新安装所有必需的模块。 Maybe the scikit-learn included on that install did not work. 也许该安装中包含的scikit-learn无法正常工作。

You can then try 然后可以尝试

sudo apt-get install python3-scipy python3-sklearn

You can install the module with the following command using pip: pip install -U scikit-learn . 您可以使用pip使用以下命令安装模块: pip install -U scikit-learn

See: Scikit-learn Docs 请参阅: Scikit学习文档

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM