Uninstall Python on Windows

This guide will instruct on uninstalling the Anaconda Python distribution and purging the computer of old configuration files which can be problematic. The instructions can be used to uninstall Miniconda/Miniforge and Mambaforge which all leave similar configuration files behind.

Right click the Start button and select Installed Apps:

img_419

Uninstall Anaconda, Miniconda, Mambaforge or Miniforge. Uninstall any standalone Spyder, Python and any other Python IDEs. This will clean up your computer and prevent any confusion:

img_420
img_421
img_422
img_423

Sometimes Installed Apps has an issue showing two entries for a program that has been updated. It is unable to remove the second entry once the first has been uninstalled. If this happens press ⊞ and r and input:

appwiz.cpl
img_424

This will launch the legacy Programs and Features which usually fares better in such a scenario:

img_425

Open up file explorer and in the address bar input:

%UserProfile%
img_426

Delete the old configuration folders:

  • .conda
  • .continuum
  • .ipython
  • .jupyter
  • .matplotlib
  • .spyder-py3
img_427

Delete the folder:

  • jedi
img_428

Delete the file:

  • .condarc

Having an old version of this file from a previous Anaconda installation and then installing Mambaforge for example without deleting this file may result in the mamba package manager using the wrong channel (conda instead of conda-forge) which can be problematic:

img_429

Open up file explorer and in the address bar input:

%AppData%
img_430

Delete the folders:

  • .anaconda
  • jupyter
img_431

Press alt and ↑ to go up a level and then select the Roaming subfolder:

img_432

Delete the folders:

  • conda
  • seaborn
  • spyder
img_433
img_434

Go to the Microsoft folder, select Windows, Start Menu and Programs and delete any old Start Menu entries:

img_442
img_443
img_444
img_445
img_446

Open up file explorer and in the address bar input:

 %ProgramData%

This location is used if one of these programs is installed for All Users. Look for the analogous folders to those seen in the User Profile above and delete them:

img_435
img_436

Right click the Start Button and select System:

img_447

Select Advanced System Settings:

img_448

Select Environmental Variables:

img_449

Select the Path and select Edit:

img_450

Ensure there are no old entries to Anaconda, Miniconda, Mambaforge, Miniforge or Python:

img_451

This gives a clean Windows Operating System to install Mambaforge or an updated version of Anaconda.