Reputation: 9
I am trying to run the PROJECT on my local machine on pycharm.
I am using Anaconda interpreter. and installed scikit-learn 1.2.0 version. Still, I am getting an error
__model = pickle.load(f)
ModuleNotFoundError: No module named 'sklearn.linear_model.base'
I have tried to solve using the existing answers answer1 on StackOverflow but none of them worked.
I tried to update the scikit-learn version but every time am getting errors.
Upvotes: 1
Views: 1298
Reputation: 4273
sklearn.linear_model.base
was deprecated in 0.22
and removed in 0.24
.
Old pickle files are not guaranteed to be compatible with newer versions, so an old version of scikit-learn is probably needed. e.g.:
pip install scikit-learn==0.20.3
Upvotes: 2