Closed celestinoxp closed 8 months ago
and here:
File [~\anaconda3\lib\site-packages\imblearn\_config.py:10](http://localhost:8888/~/anaconda3/lib/site-packages/imblearn/_config.py#line=9)
7 from contextlib import contextmanager as contextmanager
9 import sklearn
---> 10 from sklearn.utils import parse_version
12 sklearn_version = parse_version(sklearn.__version__)
14 if sklearn_version < parse_version("1.3"):
ImportError: cannot import name 'parse_version' from 'sklearn.utils'
https://github.com/scikit-learn-contrib/imbalanced-learn/blob/e78ff7acc2d0362604f2578fad8e4a318345dfbe/imblearn/base.py#L20
I think should be
from sklearn.utils.fixes import parse_version
add ".fixes" after from sklearn.utils