Anaconda plot error

Error: ModuleNotFoundError: No module named ‘pair_scatter_plots’

ModuleNotFoundError Traceback (most recent call last)
in
----> 1 from pair_scatter_plots import seaborn_pairwise_plot, caa_plot_pairs

ModuleNotFoundError: No module named ‘pair_scatter_plots’

The Code: from pair_scatter_plots import seaborn_pairwise_plot, caa_plot_pairs

That’s not a lot to go on. Can you try uninstalling and reinstalling whatever module you are using? This doesn’t look like its a problem with Anaconda…

This is what i have done in the first place:
from visualization import plot_confusion_matrix
import pandas as pd
import numpy as np
import time

from sklearn.model_selection import train_test_split
from sklearn.model_selection import cross_val_score
from sklearn import preprocessing
from sklearn.decomposition import PCA
from sklearn.multiclass import OneVsRestClassifier
le = preprocessing.LabelEncoder()
from sklearn.naive_bayes import GaussianNB
from sklearn.ensemble import RandomForestClassifier, AdaBoostClassifier
from sklearn.neural_network import MLPClassifier
import matplotlib.pyplot as plt
from sklearn.metrics import roc_curve, auc, confusion_matrix, precision_recall_fscore_support

import pickle
from pair_scatter_plots import seaborn_pairwise_plot, caa_plot_pairs

This statement is the one raising the error message:

Is pair_scatter_plots some sort of local module of yours? I can’t seem to find reference to any module named pair_scatter_plots for Python on Google. If that module is not installed, then it can’t be imported.

Any idea on how i can install this module @JeremyLT BobSmith?

Since it’s not a package available online as far as I can tell, my guess is that there is supposed to be some Python file or folder named pair_scatter_plots in the same directory as the script you are trying to run.

Thanks @JeremyLT, got is now…Salute You!! The pair_scatter_plots was in different directory.

1 Like

I’m happy to have helped.