Python Can';在ubuntu的sklearn安装中找不到任何错误
我已经使用命令“sudo-apt-get-install-python-sklearn”安装了scikit-learn。但我发现了一个错误。我的安装有什么问题Python Can';在ubuntu的sklearn安装中找不到任何错误,python,scikit-learn,deep-learning,ubuntu-18.04,Python,Scikit Learn,Deep Learning,Ubuntu 18.04,我已经使用命令“sudo-apt-get-install-python-sklearn”安装了scikit-learn。但我发现了一个错误。我的安装有什么问题 import numpy as np import matplotlib.pyplot as plt import sklearn from sklearn import linear_model 下面显示的错误- ModuleNotFoundError回溯(上次最近调用) in 1作为np导入numpy 2将matplotlib.py
import numpy as np
import matplotlib.pyplot as plt
import sklearn
from sklearn import linear_model
下面显示的错误-
ModuleNotFoundError回溯(上次最近调用)
in
1作为np导入numpy
2将matplotlib.pyplot作为plt导入
---->3.导入sklearn
4从SKL学习导入线性_模型
ModuleNotFoundError:没有名为“sklearn”的模块您应该通过
pip
安装sklearn,这意味着pip安装scikit learnsklearn
模块未安装。
使用:
或康达:
conda install scikit-learn
我还使用docker打开jupyter笔记本
pip install -U scikit-learn
conda install scikit-learn