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