Problems importing imblearn python package on ipython notebook Problems importing imblearn python package on ipython notebook powershell powershell

Problems importing imblearn python package on ipython notebook


If it don't work, maybe you need to install "imblearn" package.

Try to install:

  • pip: pip install -U imbalanced-learn
  • anaconda: conda install -c glemaitre imbalanced-learn

Then try to import library in your file:

  • from imblearn.over_sampling import SMOTE


Try this:

from imblearn import under_sampling, over_sampling

In order to import SMOTE:

from imblearn.over_sampling import SMOTE

Or datasets:

from imblearn.datasets import ...


Type !pip install imblearn

in jupyter notebook. this worked for me.