I had the same issue with the most recent installer Anaconda3-2022.05-Windows-x86_64.exe
. The installation was stuck in the same part Setting up the package cache: extracting anaconda-2022.05-py39_0.tar.bz2
for a very long time (hours) without progress.
I tried all the solutions listed in this thread and others (remove all files, install an older version of Anaconda, etc.) and none of them complete the installation.
What worked for me: whenever the installer gets stuck, I click on restart, then it asks me that some programs are running, do you want to force restart, I just clicked cancel
. Somehow this fixed the problem.
Every time the installer is stuck, I do this, and I was able to finish the installation sucessfully.
I think when I did this, windows closed all uncessary apps that run in the background, including the antivirus. Perhaps these apps were preventing Anaconda from completing the installation!