Python -- read_pickle ImportError: No module named indexes.base

This error can be caused by a version mismatch between the version of pandas used to save the dataframe and the version of pandas used to load it.

Please check the Python and Pandas version in both the machines.

Also, if versions are same, can you please share the dataframe that you used with to_pickle(), so that we can look into it.


Using pd.read_pickle can also help backwards compatibility if you are trying to read a dataframe only. See github issue.

I unfortunately have a dictionary of dataframes, so am going to try to use a virtual environment with an older version to load, re-save only the dataframes, and then use pd.read_pickle.