How to completely uninstall Anaconda on mac

1. Since Anaconda’s installation files are all included in one directory, just delete the directory directly. Delete the entire Anaconda directory

2. Use the Anaconda-Clean tool to delete

  • Install Anaconda-Clean: Enter in the terminal and press Enter:
conda install anaconda-clean
  • Run the tool anaconda-clean, enter it directly in the terminal and press Enter
anaconda-clean

After running the anaconda-clean command, the command line will prompt whether to delete it, just select y.

  • Delete all Anaconda directories (Note: Anaconda folders may be in other locations, please note)

At this point, you can delete Anaconda and reinstall a new Anaconda. If you want to delete it more completely, continue the following two or three steps before installing a new Anaconda.

  1. The second step is to delete ~/.bash_profilethe environment variables in anaconda and use vim to open and delete;

  2. The third step is to delete Anaconda’s hidden files and refer to the execution command:rm -rf ~/.condarc ~/.conda ~/.continuum

After the above 3 steps, Anaconda is completely deleted.

Guess you like

Origin blog.csdn.net/weixin_45277161/article/details/127817700