[Python] How to solve InvalidArchiveError while installing pytorch with Anaconda?

Discussão em 'Python' iniciado por Stack, Julho 28, 2025.

  1. Stack

    Stack Membro Participativo

    I have installed the latest Anaconda and updated everything. When I try to install BERTopic or PyTorch itself, I am getting this error:


    InvalidArchiveError("Error with archive C:\Users\myuser\AppData\Local\anaconda3\pkgs\pytorch-2.6.0-cpu_mkl_py3)
    ​

    So far I have tried to delete the file. I also tried conda clean --all and downgraded Python to version 3.12. This error occurs in different environments, and I don't know what to do anymore.

    It is worth mentioning that I do have admin rights now, but the problem persists. Deleting the file does not work. Starting the console as admin also does not solve the problem.

    Thanks a lot in advance!

    Continue reading...

Compartilhe esta Página