New Data Science / Machine Learning Video Everyday at 1 PM EST!!! Click the Notification Bell I'll cover how to setup Anaconda which is an amazing platfor. Installing Anaconda on Mac OS X Anaconda is a package manager, an environment manager, and Python distribution that contains a collection of many open source packages. An installation of Anaconda comes with many packages such as numpy, scikit-learn, scipy, and pandas preinstalled and is also the recommended way to install Jupyter Notebooks.
It’s easy to install Anaconda on Mac. But once you decide to call it a day, things get complicated. The problem with IDE installations like Anaconda is that they get lots of package tools and server files on your computer — something that is hard to get rid of. In this article, we explain how to uninstall Anaconda on Mac and leave no traces behind.
What is Anaconda?
Obviously, a snake. And an open-source Python distribution — the so-called “birthplace of Python data science.” In this article, we discuss the latter. Sorry if we’re killing the fun! By the way, just in case you’re wondering what’s the deal with snakes, Guido van Rossum, the guy who created Python, named it after a British comedy troupe he enjoyed at the time — Monthy Python. And then Anaconda followed because it was easy to remember.
So Anaconda is an open-source distribution for Python and R programming languages, with installation and package management tools. It is very popular with data scientists and data-driven companies because it simplifies data analysis, provides isolated environments for separate libraries and versions, etc.
Macos Anaconda Installer
How to uninstall Anaconda on Mac
One downside is that Anaconda is not very easy to get rid of once you decide you don’t need it anymore. It leaves traces all over your computer. So it’s no wonder the number of searches for “uninstall Anaconda Mac” almost equals “install Anaconda Mac.” Luckily, we know some great solutions on how to uninstall Anaconda so that it’s 100% gone from your Mac.
Uninstall Anaconda, the easy way
There are some ways to run Anaconda uninstall manually, but we must warn you it’s not easy. You’ll have to deal with Terminal commands and .bash-profile. Not to mention there’s always a risk of missing something or removing important files when you try to uninstall Anaconda manually. If you’re a seasoned Mac user, you can check how to run manual uninstall below. But we recommend to take a safe route and use CleanMyMac X for the job.
Remove apps and app leftovers
CleanMyMac X is the only tool that guarantees 100% app uninstall. Get rid of hard-to-delete applications in seconds.
CleanMyMac X is the world’s best Mac cleaner. Not exaggerating. It has a few simple modules that let you uninstall apps (with all related files), detect and remove malware, delete logs, and so much more. The Smart Scan feature even allows you to clean up the whole system and free up gigabytes of space. Sometimes we seriously wonder why CleanMyMac X doesn’t come preinstalled on every Mac because of the value it brings along.
Macos Anaconda Install For Pc
Here’s how to uninstall Anaconda Mac with CleanMyMac X:
- Open CleanMyMac X from Setapp
- Navigate to Applications > Uninstaller
- Select Anaconda from the list
- Click Remove.
Done! No leftovers. No package service files. Nothing that might remind you of Anaconda. CleanMyMac X removes the app itself and all the files associated with it. So you don’t have to worry about any clutter eating up your storage.
Macos Anaconda Install For Mac
Tip: Unfortunately, Anaconda is not the only app that is hard to uninstall. Dropbox is very tricky. Design software — even more so. The worst thing, leftover files might sit somewhere in the depth of your system making your Mac slow down and misbehave. CleanMyMac X ensures this never happens, so we recommend to use it every time you want to delete apps.
Remove Anaconda from Mac manually with Terminal
In their documentation, Anaconda mentions two major ways to uninstall the IDE — simple remove and full uninstall. The first one solves the “remove Anaconda Mac” task, but it will leave a few files behind. Full uninstall will remove associated files and directories, but it requires installing a dedicated Anaconda-Clean package. Both are not very efficient — simple remove doesn’t fully delete Anaconda, and full remove leaves you with Anaconda-Clean backup files that you have to get rid of later. Still, they are better than simply moving the app to the Trash folder.
Before you go on a Mac uninstall Anaconda mission (sounds like a movie title, doesn’t it?), make sure there are no active processes associated with Anaconda running in the background. You can check it in Activity Monitor > Memory. If you find Anaconda on the list, hit the Close button in the top menu to quit the process.
Alternatively, you can check active processes via iStat Menus. Personally, I prefer this way because it’s faster and gives you quick insights on everything currently running on your Mac.
iStat Menus is a third-party system monitor for Mac. It provides insights about your CPU, disk activity, memory load, and more in the menu bar, so it’s super easy to keep track of everything. Whether your Mac freezes, there’s loud fan noise, or any other issue, open iStat Menus and you’ll know exactly what’s wrong. So if you detect an Anaconda-related process in iStat Menus, make sure you quit it before removing the app.
All good? Now let’s run Anaconda uninstall via Terminal.
Here’s how to run simple remove of Anaconda on Mac:
- Open Terminal
- Type and run rm -rf ~/anaconda3 to remove the entire Anaconda directory.
Here’s how to run Anaconda full uninstall:
- Open Terminal
- Type and run conda install anaconda-cleanto install the Anaconda-Clean package
- Press the Return key, then type the following: anaconda-clean –yes
- To remove the entire Anaconda directory, type and run rm -rf ~/anaconda3
- To remove Anaconda-Clean backups, type and run rm -rf ~/.anaconda_backup
Note that after you complete Anaconda full uninstall, you should also run a simple remove (the first method). This will delete Anaconda from Mac.
Remove Anaconda from Mac manually via Finder
As we’ve mentioned, the Terminal methods recommended by Anaconda documentation are not the best — and very likely to leave some service files on your Mac. So if you decide to uninstall Anaconda manually, it will be better to really dig into directories and remove the remains of Anaconda one by one. Not a time-efficient process, but it works.
The first step is to delete the app — you can access Anaconda Navigator from your Applications folder, right-click on the app, and select Move to Bin.
Then, you have to deal with the directory and associated files. Here’s a step-by-step process:
- Quit Anaconda-related processes using iStat Menus
- Delete Anaconda app by moving it to the Trash folder
- Open Finder > Go > Go to Folder
- Search and delete Anaconda files by entering the following directions:
It’s also a good idea to inspect other directories for any traces of Anaconda. Specifically, check ~/Library/Containers; ~/Library/Application Support; ~/Library/Logs; ~/Library/Application Scripts; ~/Library/Caches; ~/Library/Preferences. If you detect any files that have “anaconda” in their names, go ahead and remove them as well.
Remove Anaconda from .bash_profile
Once you’re done with the “uninstall Anaconda Mac” issue, go to your .bash_profile and remove the path that was added by Anaconda. Also known as a dot file, .bash_profile is a personal initialization file that stores configurations for your command line. While you don’t want old Anaconda configs to mess with your work, we recommend deleting the path. Here’s how you can do it:
- Access your User folder: Open Finder, then press Command ⌘ + Shift ⇧ + H
- Search for .bash_profile using Command ⌘ + Shift ⇧
- Find the path that contains ‘anaconda’ — it will be named something like users/[your username]/anaconda3
- Delete the path and save the changes.
Faster way to solve Mac issues
Setapp gives you access to a whole range of tools for app uninstall, macOS update, fixing macOS problems, etc.
So what’s the best way to uninstall Anaconda completely from Mac?
It all depends on your expertise and the tools you have at your disposal. If you have Setapp installed on your Mac, there’s only one answer — use CleanMyMac X to delete all Anaconda-associated files in one click. It’s definitely the best solution.
For those of you who don’t know Setapp, it’s a subscription service for Mac and iOS apps. Currently, the Setapp collection covers 200+ apps, including CleanMyMac X and iStat Menus mentioned in this article. Access to all apps costs $9.99/month, but you can also use it for 7 days free. So everyone can uninstall Anaconda with CleanMyMac X for free!
The reason why we recommend CleanMyMac X is because it excludes human error. There’s no chance you miss some old Anaconda caches or backups — this Mac cleaner removes it all. Otherwise, use the step-by-step guide on deleting Anaconda files via Finder. Make sure you go through every directory and reset your .bash_profile to remove everything related to Anaconda.
Finally, if you don’t think you can delete leftovers manually, use quick uninstall methods recommended by Anaconda. But don’t make it a long-term solution — for your Mac to perform well, you should find a way to clean up the whole system.
Download the installer:
Miniconda installer for macOS.
Anaconda installer for macOS.
Verify your installer hashes.
Miniconda---In your terminal window, run:
Follow the prompts on the installer screens.
If you are unsure about any setting, accept the defaults. Youcan change them later.
To make the changes take effect, close and then re-open yourterminal window.
Test your installation. In your terminal window orAnaconda Prompt, run the command
condalist. A list of installed packages appearsif it has been installed correctly.
Installing in silent mode¶
The following instructions are for Miniconda. For Anaconda,substitute
Miniconda in all of the commands.
To run the silent installation ofMiniconda for macOS or Linux, specify the -b and -p arguments ofthe bash installer. The following arguments are supported:
-b: Batch mode with no PATH modifications to shell scripts.Assumes that you agree to the license agreement. Does not editshell scripts such as
-p: Installation prefix/path.
-f: Force installation even if prefix
The installer prompts “Do you wish the installer to initialize Miniconda3 by running
condainit?” We recommend “yes”.
If you enter “no”, then conda will not modify your shell scripts at all. In order to initialize after the installation process is done, first run
source<pathtoconda>/bin/activate and then run
macOS Catalina (and later)
If you are on macOS Catalina (or later versions), the default shell is zsh. You will instead need to run
source<pathtoconda>/bin/activate followed by
condainitzsh (to explicitly select the type of shell to initialize).
Updating Anaconda or Miniconda¶
Open a terminal window.
Navigate to the
Uninstalling Anaconda or Miniconda¶
Open a terminal window.
Remove the entire Miniconda install directory with:
~/.bash_profileto remove the Minicondadirectory from your PATH environment variable.
Remove the following hidden file and folders that may havebeen created in the home directory: