[Python] Missing 'numpy._core.numeric' when loading pandas df from pickle

Discussão em 'Python' iniciado por Stack, Junho 2, 2025.

  1. Stack

    Stack Membro Participativo

    A pandas dataframe was pickled on another machine via

    df.to_pickle('data.pkl')


    I tried loading that pickle both through

    with open('path/to/data.pkl', 'rb') as handle:
    data = pickle.load(handle)


    and

    data = pd.read_pickle('path/to/data.pkl')


    both yielded

    ModuleNotFoundError: No module named 'numpy._core.numeric'


    Both computers run pandas 2.2.2 and numpy 1.26.4, going to these versions worked for some others that faced this error, not me.

    Continue reading...

Compartilhe esta Página