Kalyani Kothawade
Kalyani Kothawade

Reputation: 303

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

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.

Upvotes: 30

Views: 168029

Answers (15)

Phil
Phil

Reputation: 39

Anaconda Installation stuck at - 'Setting up the package cache' my system Dell desktop - windows 11 , 64.exe chip, run several installations - until selected from repo.anaconda.com - anaconda3-2018 12-windows-x86 64.exe it seems this version took sometime yet I got a installation complete - setup was completed successfully.

Upvotes: 0

Abdul Rehman
Abdul Rehman

Reputation: 21

Yes. It stuck there when I was installing it. but after some time it changes from "settings up the cache" to "history". I think at this point it tries to download some files from internet and if internet is not stable then it won't be able to download the files and Stucks there. enter image description here

See in above picture, it says "downloading and extracting packages", So make sure you have good internet connection and wait. It will complete. And It installation is completed on my side. enter image description here

Although I did not note the time.. but it took approximately 45 minutes to install. Thanks

Upvotes: 1

Nufosmatic
Nufosmatic

Reputation: 175

Anaconda3 2023.03 on Windows 11 on 7i took a LOOOOONG time on the "package cache" step - after the last package and just before "Output folder" step, and then started "Downloading and Extracting Packages".

The virus sniffer is busy-busy...

Upvotes: 2

Mohamed Ismaiel Ahmed
Mohamed Ismaiel Ahmed

Reputation: 333

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!

Upvotes: 6

GhettoCoder
GhettoCoder

Reputation: 105

I am experiencing this as well but it is not stuck. If you right click the anaconda3 folder and select properties you will see a size and a number of file. Close it and open it again and you will notice the size and the number of file becomes greater. Its just a super slow install. Also in task manager, you can tell its still working as the HDD should be at 100% usage.

Upvotes: 3

Atul Kumar
Atul Kumar

Reputation: 129

I ended up installing anaconda3 2019.10 and then opening an anaconda command prompt and typing

conda install anaconda=x

which updated normally to version x

Upvotes: 0

Balaji
Balaji

Reputation: 21

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

Upvotes: 0

Dibakar
Dibakar

Reputation: 159

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.

Upvotes: 0

filiphagan
filiphagan

Reputation: 304

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

Upvotes: 0

Shanmugarajan
Shanmugarajan

Reputation: 23

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.

Upvotes: 0

Guillermo Luijk
Guillermo Luijk

Reputation: 199

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.

Upvotes: 3

diman82
diman82

Reputation: 738

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

Upvotes: 0

Sumit Pokhrel
Sumit Pokhrel

Reputation: 2228

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

Upvotes: 10

Yashasvi Bajpai
Yashasvi Bajpai

Reputation: 281

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!

Upvotes: 28

Joel
Joel

Reputation: 189

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.

Upvotes: 17

Related Questions