In the folder where you installed Anaconda (Example: C:\Users\username\Anaconda3) there should be an executable called Uninstall-Anaconda.exe. Double click on this file to start uninstall Anaconda.
That should do the trick as well.
Answer from Aerylia on Stack OverflowIn the folder where you installed Anaconda (Example: C:\Users\username\Anaconda3) there should be an executable called Uninstall-Anaconda.exe. Double click on this file to start uninstall Anaconda.
That should do the trick as well.
I think this is the official solution: https://docs.anaconda.com/anaconda/install/uninstall/
[Unfortunately I did the simple remove (Uninstall-Anaconda.exe in C:\Users\username\Anaconda3 following the answers in stack overflow) before I found the official article, so I have to get rid of everything manually.]
But for the rest of you the official full removal could be interesting, so I copied it here:
To uninstall Anaconda, you can do a simple remove of the program. This will leave a few files behind, which for most users is just fine. See Option A.
If you also want to remove all traces of the configuration files and directories from Anaconda and its programs, you can download and use the Anaconda-Clean program first, then do a simple remove. See Option B.
Option A. Use simple remove to uninstall Anaconda:
- Windows–In the Control Panel, choose Add or Remove Programs or Uninstall a program, and then select Python 3.6 (Anaconda) or your version of Python.
- [... also solutions for Mac and Linux are provided here: https://docs.anaconda.com/anaconda/install/uninstall/ ]
Option B: Full uninstall using Anaconda-Clean and simple remove.
NOTE: Anaconda-Clean must be run before simple remove.
Install the Anaconda-Clean package from Anaconda Prompt (Terminal on Linux or macOS):
conda install anaconda-cleanIn the same window, run one of these commands:
Remove all Anaconda-related files and directories with a confirmation prompt before deleting each one:
anaconda-cleanOr, remove all Anaconda-related files and directories without being prompted to delete each one:
anaconda-clean --yesAnaconda-Clean creates a backup of all files and directories that might be removed in a folder named .anaconda_backup in your home directory. Also note that Anaconda-Clean leaves your data files in the AnacondaProjects directory untouched.
After using Anaconda-Clean, follow the instructions above in Option A to uninstall Anaconda.
Uninstalling Anaconda - Product Help - Anaconda Forum
installation - Uninstalling and Reinstalling Anaconda - Geographic Information Systems Stack Exchange
python - How to uninstall Anaconda completely from macOS - Stack Overflow
I can't uninstall Anaconda3 in my system
Videos
i tried to download an ai called "deep-daze" that basically creates images for what you put that you want it to imagine, sadly my dumbass didnt follow iinstructions and so i decided to delete it but after i delete it, windows powershell comes up with this, "& : The term 'C:\ProgramData\Anaconda3\Scripts\conda.exe' is not recognized as the name of a cmdlet, function, script
file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At C:\Users\bdwg1\Documents\WindowsPowerShell\profile.ps1:4 char:4
+ (& "C:\ProgramData\Anaconda3\Scripts\conda.exe" "shell.powershell" "h ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\ProgramData\...ripts\conda.exe:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException"
how would i remove every environment to get rid of this
To remove the configs:
conda install anaconda-clean
anaconda-clean --yes
Once the configs are removed you can delete the anaconda install folder, which is usually under your home dir:
rm -rf ~/anaconda3
Also, the anaconda-clean --yes command creates a backup in your home directory of the format ~/.anaconda_backup/<timestamp>. Make sure to delete that one also.
EDIT (v5.2.0): Now if you want to clean all, you will also have to delete the two last lines added to your .bash_profile. They look like:
# added by Anaconda3 5.2.0 installer
export PATH="/Users/ody/anaconda3/bin:$PATH"
To uninstall Anaconda open a terminal window:
- Remove the entire anaconda installation directory:
rm -rf ~/anaconda
- Edit
~/.bash_profileand remove the anaconda directory from yourPATHenvironment variable.
Note: You may need to edit .bashrc and/or .profile files instead of .bash_profile
Remove the following hidden files and directories, which may have been created in the home directory:
.condarc.conda.continuum
Use:
rm -rf ~/.condarc ~/.conda ~/.continuum
The issue is that the uninstall instructions assume that you have installed anaconda for just yourself however you have installed it for all users of the machine.
The installation put it in /opt/anaconda but the uninstall instructions assume you place it is ~/anaconda
The uninstall for a single user only needs the first 4 steps (and possibly 3 is not required as 2 does that) and a step to alter your shell startup files
But step 4 has to use the directory you installed anaconda in which is not always ~/anaconda. In your case /opt/anaconda
You can find out the correct path by running conda info before starting to remove things The entry for base environment shows you the directory to remove.
To remove the entries from your shell first note that your step 10 is NOT what the uninstall doc says. The doc says look for a line like that and then edit to remove it. However for more confusion the doc does not cover the normal new updates to .bash_profile . You have to remove the section starting with # >>> conda initialize >>> and ending with # <<< conda initialize <<<
So I think (I have not tested as I need conda) the steps are
- Run
conda infoand note the base environment - conda install anaconda-clean
- anaconda-clean --yes
- rm -rf ~/.condarc ~/.conda # I think 3 might do this
- rm -rf <the value found in step 1>
- Edit your shell startup files to both remove any entry altering your path for conda and also the parts in the conda initialise section
- When you have tested all remove the backup directory shown in the doc
This is a specific example of a common problem. Installers and applications that spray files and detritus all over the filesystem and rely on users to run many scripts, all changing weekly with version upgrades quickly becomes an intractable problem. You should be able to reclaim the 5 GB of space easily without worrying about some stub files and mostly empty config files.
Open the Terminal.app or iTerm2 terminal application, and then remove your entire Anaconda directory, which has a name such as anaconda2, anaconda3, or ~/opt. Enter rm -rf ~/anaconda3 to remove the directory.
If you’ve deleted the main program and the main folders (which I repeat above), I would say you’re good. Set up Time Machine so you’re backing up going forward and next time you want to install similar tool chains and environments, be sure you have a backup so you can roll back if that install gives poor results. Unless there’s a large file lying around you won’t gain anything cleaning up hundreds of files and other tools let you find folders and large files to clean them together.
In the unlikely event you have some issue caused by the leftover files, it’s less complicated and less time consuming to erase and reinstall a Mac and get your documents and apps reinstalled than it is to reconstruct what anaconda installed and surgically reverse every remnant left on the filesystem.
Worse, if you rm the wrong thing, you may delete more than you bargained for.
- How can I make 'rm' move files to the trash can?
A safer bet is to substitute open for rm and you do need to recognize -rf or any flags passed to rm and delete them. Use the command line to open the folders rather than removing them is my advice if you don’t get exactly the syntax of the commands you are copy and paste into terminal. The writer of those guides assumes you know what the commands do or you won’t blame / sue them if you make an error and delete your home folder and all your pictures and documents.