[Python] OSError: Failed to interpret my file as a pickle (numpy)

Discussão em 'Python' iniciado por Stack, Dezembro 19, 2024.

  1. Stack

    Stack Membro Participativo

    I am trying to load a file, and it has worked before but now I only get the error:


    OSError: Failed to interpret file 'name.npz' as a pickle
    ​

    The code I use is the following

    data = np.load("name.npz")


    I can't see what has changed since I last run the code and it worked, I even backed back to the original code (that I had when I'm sure it worked to load it) but it still gives the same error message.

    Continue reading...

Compartilhe esta Página