Anaconda is kind of standard amongst knowledge scientists because it simplifies Python and R programming. It is extensively used for duties akin to machine studying and knowledge evaluation. However whereas it is highly effective, you could need to uninstall it to unlock disk house, change to a different growth setting, or discontinue its use altogether.

Nevertheless, uninstalling Anaconda is not so simple as dragging the icon to the trash folder. The software program package deal has numerous hidden recordsdata, setting variables, and configurations you could take care of to make sure this system is totally eliminated out of your Mac. It is fairly a snake.

I bear in mind how powerful it was for me to uninstall the distribution for the primary time because it leaves loads of muddle, however I will present you other ways — from fast app-based options to guide elimination strategies.

Methods to take away Anaconda on Mac

Earlier than we proceed, let’s rapidly evaluate methods to take away Anaconda rapidly:

I need to What to do
Uninstall Anaconda in a couple of clicks Use CleanMyMac’s Purposes characteristic.
Take away Anaconda manually Use Terminal’s conda take away anaconda-navigator command.
Take away Anaconda from .bash_profile Use the inbuilt Nano editor on Terminal.
Take away Anaconda with Finder Take away /anaconda3 or /choose/anaconda3 through Go > Go to Folder.
Uninstall Miniconda Take away listing rm -rf ~/miniconda3 or sudo rm -rf /choose/anaconda3 in Terminal.
Confirm Anaconda is totally uninstalled Run conda –version after which echo $PATH in Terminal to make sure there are not any directories left.

Learn how to uninstall Anaconda on Mac in a single click on

There are a couple of methods to do away with the Anaconda on Mac, and I’m going to begin with my favourite methodology. It’s the quickest one and takes nearly no effort in any respect.

Uninstall Anaconda utilizing CleanMyMac

Utilizing CleanMyMac is the best and quickest manner of uninstalling Anaconda. That is additionally my favourite Mac optimization software, because it removes all hidden set up recordsdata, eliminates duplicates, and optimizes efficiency to make sure my Mac is operating as new.

Here is methods to utterly uninstall Anaconda utilizing CleanMyMac:

  1. Set up and open CleanMyMac.
  2. Go to the Purposes tab, then click on Scan.
  3. Click on Handle My Purposes after the scan.
  4. Choose Anaconda-Navigator underneath Uninstaller > All Purposes. Guarantee the whole lot is chosen.
  5. Then, click on Uninstall.

After you click on Uninstall, CleanMyMac will take away all Anaconda-associated recordsdata, as they might gradual your Mac or trigger it to misbehave.

Fully take away Anaconda from Mac manually with Terminal

If you happen to choose a guide strategy (and also you’re a complete professional) the place you’ve got whole management, you may uninstall the distribution utilizing Terminal.

Here is methods to take away Anaconda from Mac with Terminal:

  1. Go to Finder > Purposes > Utilities > Terminal.
  2. Sort conda take away anaconda-navigator > Press Return to verify the deletion.

3. Then, uninstall the listing utilizing the command rm -rf ~/anaconda3 or sudo rm -rf /choose/anaconda3 (for system-wide installations). For the latter, enter your password when prompted.

4. Delete hidden recordsdata and directories utilizing the command rm -rf ~/.condarc ~/.conda ~/.anaconda ~/.continuum.

5. Shut Terminal. It is best to not see the (base) setting indicator whenever you launch it once more.

Take away Anaconda from .bash_profile

Once you set up Anaconda, the PATH variable in your .bash_profile is modified so as to add its bin listing. That is helpful if you end up utilizing the distribution, because it means that you can use Anaconda-related instructions (like conda) instantly from Terminal. 

Nevertheless, now that you have uninstalled Anaconda, the modifications right here will confer with directories that do not exist, so they might trigger errors when opening Terminal or result in using incorrect variations of Python.

You may edit the .bash_profile utilizing the inbuilt Nano editor on Terminal.

Here is methods to edit the file utilizing the Nano editor:

  1. Go to Finder > Purposes > Utilities > Terminal.
  2. Sort nano ~/.zshrc > Press Return.
  3. Search for the block of textual content between the strains:

4. Use Possibility + Ok to delete the whole lot.

5. Save and exit by urgent Management + X, then Y, and press Return.

6. Reload the profile by typing the command supply ~/.zshrc.

You may then stop Terminal.

Take away Anaconda from Mac manually through Finder

Possibly you have had sufficient of Anaconda’s hidden recordsdata and need to make sure the set up is definitely gone. In that case, you may delete the recordsdata manually utilizing Finder.

Here is the step-by-step course of:

  1. Open Finder.
  2. Click on Go within the menu bar > Go to Folder.
  3. Sort /anaconda3 or /choose/anaconda3 in the event you put in Anaconda system-wide and press Return.
  4. Choose all recordsdata and right-click > Select Transfer to Trash.

5. Delete the anaconda3 folder. You are able to do this by going again to the choose folder (Go > Go to Folder> /choose) or the house location utilizing Command + Shift + H.

6. Proper-click on the Trash icon and click on on Empty Trash.

You have now deleted Anaconda. From there, you may edit the .bash_profile or the .zshrc file. To take action:

  1. Open Finder > Press Command + Shift + H to go to the house folder.
  2. Press Command + Shift + . to indicate hidden recordsdata.
  3. Click on on .bash_profile (for bash customers) or .zshrc (for zsh customers). You may select your most well-liked editor, however I like to recommend CodeRunner because it makes enhancing and operating code straightforward and quick.
  4. Delete the whole lot inside (and together with) the # >>> conda initialize >>> and # <<< conda initialize <<< block.

In some circumstances, particularly when you’ve got a system-wide set up, the .bash_profile file could also be locked. If that is the case, you may go to the Terminal and sort the command sudo chown your_user_name ~/.bash_profile. This could offer you permission to edit the file. 

Be aware that for macOS Sequoia, you may almost definitely edit the .zshrc file as a substitute of .bash_profile, as zsh is the default shell now.

Learn how to uninstall Miniconda on a Mac

Possibly you did not need to set up Anaconda, because it’s fairly complete, so that you selected to put in the easier model, Miniconda. It does not include many preinstalled packages however nonetheless creates directories and configuration recordsdata particular to its setting.

To take away Miniconda utterly, the method you could observe is much like eradicating Anaconda.

Here is methods to go about it:

  1. Go to Finder > Purposes > Utilities > Terminal.
  2. Uninstall the Miniconda listing by operating the command rm -rf ~/miniconda3 or sudo rm -rf /choose/anaconda3. Enter your password if prompted.
  3. Delete the related configuration recordsdata utilizing the command rm -rf ~/.condarc ~/.conda ~/.continuum.

Now you can go forward and edit the .bash_profile or .zshrc file to take away Miniconda edits.

Confirm Anaconda is totally uninstalled

Contemplating Anaconda is kind of tough to uninstall utterly, it is vital to confirm that it is really gone. You do not need hidden recordsdata or settings that might decelerate your Mac or trigger points down the road.

Here is methods to confirm uninstalling Anaconda:

  1. Go to Finder > Purposes > Utilities > Terminal > See if the (base) indicator is gone.
  2. Sort the command conda –version to see if the system nonetheless acknowledges the Anaconda or its package deal supervisor (conda).

If Anaconda was correctly uninstalled, you should not see the (base) indicator, and the model examine ought to convey up the error “conda not discovered.” If you happen to see a model quantity or a response in some way associated to conda, it means there are nonetheless some remnants in your system. 

As soon as you have verified the set up is not there, you may examine whether or not the listing remains to be current. To do that:

  1. Go to Finder > Purposes > Utilities > Terminal.
  2. Sort the command echo $PATH and look via the output to make sure there is no Anaconda listing – /choose/anaconda3/bin or ~/anaconda3/bin. If these directories are nonetheless current, you may must manually take away them out of your PATH within the .bash_profile or .zshrc file.

Fully uninstalling Anaconda on Mac

Fully uninstalling Anaconda on Mac may be tough as a result of hidden recordsdata and configurations, however it does not need to be a headache. If you’re searching for the best manner, CleanMyMac is your trusted sidekick that may assist uninstall all apps (and their dependencies) and smoothen all of your Mac operations. 

If you need a extra hands-on strategy, you need to use Core Shell as an alternative choice to Terminal. It is extra highly effective and customizable, and it makes managing a number of hosts straightforward via a devoted GUI. Moreover these, CodeRunner is ideal for enhancing these pesky shell file entries, and PathFinder is great at managing recordsdata and directories via its dual-pane interface. All these apps can be found on Setapp — a cool platform with over 250 macOS and iOS underneath a single subscription plan — and you may strive them out free for 7 days!

FAQ

The place is Anaconda put in on a Mac?

Anaconda is usually put in within the consumer listing underneath the folder title “anaconda3”.

Right here’s methods to discover Anaconda’s set up path in your Mac:

  1. Open Finder > Purposes > Utilities > Terminal.
  2. Sort echo $CONDA_PREFIX and press Return.
  3. Test the output:
  • For single-user: /Customers/your-username/anaconda3
  • For system-wide: /choose/anaconda3

Learn how to examine if Anaconda is put in or not?

To examine if Anaconda is put in in your Mac:

  1. Open Finder > Purposes > Utilities > Terminal.
  2. Sort conda –version and press Return.
  3. If Anaconda is put in, you may see the model quantity.

Non-compulsory: Sort echo $PATH to examine if Anaconda’s listing seems within the output.

Von admin

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert