0

This is odd, I'm using 3.7 python and my libraries the dependent to imbalanced-learn is satistied too. However, when I import the library in Jupyter, it produces error. Can anyone please advice?

--> 13 from imblearn import FunctionSampler
        14 #model metrics
        15 from sklearn.metrics import accuracy_score

ModuleNotFoundError: No module named 'imblearn'

Versions:

  • imbalanced-learn 0.6.2
  • imblearn 0.0
Alexander L. Hayes
  • 3,892
  • 4
  • 13
  • 34
Cassie.L
  • 311
  • 1
  • 7
  • 19
  • are you sure you installed it in the right enviornment? – PV8 Mar 02 '20 at 06:47
  • Hi, I'm a beginner using Visual Studio Code, how do I know if I install in the right environment and what should I do going forward? – Cassie.L Mar 02 '20 at 10:18

1 Answers1

0

Check that you are running in the correct python environment in vscode, then it should work.

skibee
  • 1,279
  • 1
  • 17
  • 37