use*_*158 13 python scikit-learn
当我按照网站(https://www.kaggle.com/wiki/GettingStartedWithPythonForDataScience)并输入python makeSubmission.pyI时收到以下错误消息:
ImportError: No module named sklearn
Run Code Online (Sandbox Code Playgroud)
我想我已经成功安装了以下内容:Python 3.4 for windows sciPy,NumPy和matplotlib setuptools scikit-learn PyCharm
然后我打开"Python 3.4命令行"并键入import sys; print(sys.__path__),但我收到了消息
Traceback (most recent call last): File "<stdin>", line 1, in <module>
AttributeError: module object has no attribute '__path__'
Run Code Online (Sandbox Code Playgroud)
有人可以帮忙吗?
小智 5
Ubuntu 14.04 软件包名为 python-sklearn(以前称为 python-scikits-learn),可以使用以下命令安装:sudo apt-get install python-sklearn