No module named 'sklearn.ensemble._forest'

I have saved radomforestclassifier model to a file using pickle but when I try to open the file: model = pickle.load(f)

I get this error: builtins.ModuleNotFoundError: No module named 'sklearn.ensemble._forest'

Looks like you saved your file in different python version or environment and try to open it in different one.

Yes that was the reason, thanks

ModuleNotFoundError: No module named 'sklearn.ensemble.forest' I am getting error like this, Can anybody help pllzzzz

Make sure that you have the same version of sklearn in the place where you exported the model and where you're trying to load it.