简体   繁体   English

Google Colab ModuleNotFoundError:没有名为“sklearn.externals.joblib”的模块

[英]Google Colab ModuleNotFoundError: No module named 'sklearn.externals.joblib'

My Initial import looks like this and this code block runs fine.我的初始导入看起来像这样,这个代码块运行良好。

# Libraries to help with reading and manipulating data
import numpy as np
import pandas as pd

# Libraries to help with data visualization
import matplotlib.pyplot as plt
import seaborn as sns

sns.set()

# Removes the limit for the number of displayed columns
pd.set_option("display.max_columns", None)
# Sets the limit for the number of displayed rows
pd.set_option("display.max_rows", 200)

# to split the data into train and test
from sklearn.model_selection import train_test_split

# to build linear regression_model
from sklearn.linear_model import LinearRegression

# to check model performance
from sklearn.metrics import mean_absolute_error, mean_squared_error, r2_score

But when I try to following command I get the error ModuleNotFoundError: No module named 'sklearn.externals.joblib'但是当我尝试执行命令时,我收到错误 ModuleNotFoundError: No module named 'sklearn.externals.joblib'

I tried to use.pip to install all the modules and other suggestions for this error it didnt work.我尝试使用.pip 来安装所有模块和其他针对此错误的建议,但它不起作用。 This is google colab so not sure what I am missing这是 google colab 所以不知道我错过了什么

import joblib
from mlxtend.feature_selection import SequentialFeatureSelector as SFS

Your code works fine for me on colab, I suggest opening a new instance and trying again, with just this block.您的代码在 colab 上对我来说很好,我建议只使用这个块打开一个新实例并重试。

在此处输入图像描述

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

相关问题 没有名为“sklearn.externals.joblib”的模块错误 - No module named 'sklearn.externals.joblib' ERROR ModuleNotFoundError:没有名为“sklearn.utils._joblib”的模块 - ModuleNotFoundError: No module named 'sklearn.utils._joblib' sklearn.externals.joblib无法加载pkl文件 - sklearn.externals.joblib does not load pkl file ModuleNotFoundError:没有名为“sklearn.externals.six”的模块 - ModuleNotFoundError: No module named 'sklearn.externals.six' sklearn.externals joblib 抛出 ImportError - 服务器上没有名为 joblib.numpy_pickle 的模块 - sklearn.externals joblib throws ImportError - no module named joblib.numpy_pickle on a server ModuleNotFoundError:Google Colab 上没有名为“nets”的模块 - ModuleNotFoundError: No module named 'nets' on Google Colab ModuleNotFoundError:Google Colab 中没有名为“pyaudio”的模块 - ModuleNotFoundError: No module named 'pyaudio' in Google Colab Google colab:ModuleNotFoundError:没有名为“pymorphy2”的模块 - Google colab : ModuleNotFoundError: No module named 'pymorphy2' ModuleNotFoundError:没有名为“google.colab”的模块 - Python - ModuleNotFoundError: No module named 'google.colab' - Python modulenotfounderror:没有名为“ sklearn”的模块 - modulenotfounderror : no module named 'sklearn'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM