mlxtendをcondaにインストールしたにも関わらずModuleNotFoundError: No module named 'mlxtend'とエラーが出てしまいます。
解決方法を教えてください。
JupyterNotebookを使っています。
Anacondapromptで
conda list
mlxtend 0.13.0 py_1 conda-forge/label/gcc7
というようにmlxtendはインストールしてあります
Python
1#分類結果を図示する 2import matplotlib.pyplot as plt 3from mlxtend.plotting import plot_decision_regions 4plt.style.use('ggplot') 5 6X_combined_std = np.vstack((X_train_std, X_test_std)) 7y_combined = np.hstack((y_train, y_test)) 8 9fig = plt.figure(figsize=(13,8)) 10plot_decision_regions(X_combined_std, y_combined, clf=model, res=0.02) 11plt.show() 12 13として実行すると 14 15ModuleNotFoundError Traceback (most recent call last) 16<ipython-input-14-a2d934276381> in <module> 17 1 #分類結果を図示する 18 2 import matplotlib.pyplot as plt 19----> 3 from mlxtend.plotting import plot_decision_regions 20 4 plt.style.use('ggplot') 21 5 22 23ModuleNotFoundError: No module named 'mlxtend' 24となります。
あなたの回答
tips
プレビュー