[英]Google Colab ModuleNotFoundError: No module named 'sklearn.externals.joblib'
我的初始導入看起來像這樣,這個代碼塊運行良好。
# 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
但是當我嘗試執行命令時,我收到錯誤 ModuleNotFoundError: No module named 'sklearn.externals.joblib'
我嘗試使用.pip 來安裝所有模塊和其他針對此錯誤的建議,但它不起作用。 這是 google colab 所以不知道我錯過了什么
import joblib
from mlxtend.feature_selection import SequentialFeatureSelector as SFS
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.