【发布时间】:2020-02-02 01:18:54
【问题描述】:
我已经使用命令“sudo apt-get install python-sklearn”安装了 scikit-learn。但我收到 ModuleNotFoundError。我的安装有什么问题?
import numpy as np
import matplotlib.pyplot as plt
import sklearn
from sklearn import linear_model
错误显示如下-
ModuleNotFoundError Traceback(最近一次调用最后一次)
<ipython-input-3-413e8e9f65e9> in <module>
1 import numpy as np
2 import matplotlib.pyplot as plt
----> 3 import sklearn
4 from sklearn import linear_model
ModuleNotFoundError: 没有名为“sklearn”的模块
【问题讨论】:
标签: python scikit-learn deep-learning ubuntu-18.04