Anaconda Installation stuck at - 'Setting up the package cache'

Viewed 74233

I am trying to install Anaconda V 3.7 on Windows 10 - 64 bit system. Download was successful.In installation step extraction of packages also completed. After that it gets stuck at one point where message shown on window is - 'Setting up the package cache'.

I removed all previous versions of Python/Conda from my system.Removed path from environment variable still getting this error.

10 Answers

I too was desperate on this.But being on a limited data-plan, I couldn't reattempt another download of the previous version of Anaconda as suggested in the above answer. So instead I waited and in 9 minutes exactly, the status changed from Setting up the package cache to Setting up the base environment.

I would suggest wait a little more and hopefully, the installation would finish!

I had the same problem as you. My guess is that the current version for Windows is unstable. My solution was to go to the anaconda archive page:

https://repo.continuum.io/archive/

and download the second newest version, i.e. Anaconda3-2019.10-Windows-x86_64.exe 461.5M 2019-10-15 09:27:17. This one turns out to be stable and the installation was finished in 3 minutes.

You have to wait significantly longer (around 10 minutes) than the previous version since the file is a lot larger and new Anaconda integrates a lot more stuff. It isn't unstable. Final Step after Completion

I had the same issue, and solved it (apparently; tried several commands in the CONDA prompt, Spyder and Jupyter notebooks and all worked fine) by entering the Application manager, entered the Anaconda installer which had several processes running, and after making sure all of the were idle (0% CPU consumption) for a while, I killed one of the two prompt consoles running. One is conhost.exe, I killed the other one, and the installation followed the rest of steps flawlessly.

PS: this was a Anaconda update. I already had problems when installing CONDA on my laptop three years ago. Got trouble again. I find it difficult to believe that such a problematic environment is the most common tool to run Python code on Windows. R/RStudio is by far much more robust, user friendly and flawless than this Anaconda suite.

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 non 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!

Tried several versions - didn't help. Just install Miniconda - worked for me

I faced the same issue when i tried to install below version. I was running some heavy process while installation that also makes more delay.

Anaconda3-2021.11-Windows-x86_64

I suggest you to wait for sometime and the installation will complete without any issues.

I tried to install Anaconda3-2022.05-Windows-x86_64 on Windows 11. What worked for me: after rebooting I've run the installation again installing Anaconda for my user only (not for all users). It took ages but it was successful

The problem for me was - not waiting long enough. In fact it took about 1 hr in an i5 laptop. Anaconda team should give enough messages to show that installation is in progress.

As suggested by @mohamed-ismaiel-ahmed try restart and cancel it so redundant programs are closed and installation resumes. It worked for me.

Related