My code is as follows:
from imblearn import over_sampling
I get this error:
cannot import name 'DistanceMetric' from 'sklearn.metrics'
A simple import on imblearn is giving the same error. I tried reinstalling scikit learn and scipy, but I still get the same error.