I was able to install pymatgen, matminer & automatminer (all with ‘pip install’). However, when I try to use automatminer, I run into a problem.
When I do this:
from automatminer import MatPipe
I get (finally): ModuleNotFoundError: No module named ‘sklearn.metrics.scorer’
When I watched a video (from MP) which used automatminer, I could see warnings about depreciation in scikitlearn, e.g., “FutureWarning: The sklearn.metrics.scorer module is deprecated in version 0.22 and will be removed in version 0.24 …”
I have tried downgrading my scikit-learn to earlier versions but this just produces other errors.
if neither of these works, you should check your sklearn install. If the first one works but the second one doesn’t, probably we should update our code.
On my laptop which has version 0.22.2 of sklearn: import sklearn.metrics works with no warnings/errors import sklearn.metrics.scorer works with warnings about deprecation and something will be removed in version 0.24 (of sklearn) from automatminer import MatPipe has similar warnings (not errors)
On my desktop, import sklearn.metrics works with no warnings/errors import sklearn.metrics.scorer does not work. It has this error:
ModuleNotFoundError: No module named ‘sklearn.metrics.scorer’ from automatminer import MatPipe does not work. It has this (final) error:
ModuleNotFoundError: No module named ‘sklearn.metrics.scorer’
Yesterday I downgraded my sklearn but had to downgrade other packages as well. I think this worked finally:
!pip install pymatgen==2020.01.28
!pip install matminer==0.6.2
!pip install skrebate==0.6
!pip install automatminer==1.0.3.20200727
!pip3 install ruamel_yaml
!pip3 install ruamel.yaml --ignore-installed ruamel.yaml