Miniconda / Anaconda installation error (C:\ProgramData\miniconda3 is not empty)

Good day dear community

I tried installing a newer version of Miniconda, but I got an error saying C:\ProgramData\miniconda3 is not empty, meaning an older version is already installed. Why doesn’t the setup just upgrade it? Is there a way to upgrade Miniconda without deleting the contents of C:\ProgramData\miniconda3? This issue is causing problems with our Intune patch management. We could use a PowerShell script to delete the folder before installation, but is there another solution?

Typically, once you’ve installed Miniconda, you use conda to update it and install other packages. If you do need to reinstall in the same location, there is a --force or -f option for MacOS and Linux, but unfortunately that is not an option on Windows.
Some relevant links:

1 Like

Just create a new folder in C drive and it worked for me. thank you