Completely uninstalling Anaconda on your Mac: a step-by-step guide
Anaconda is loved by data scientists because it simplifies Python and R programming and is widely used in tasks such as machine learning and data analysis. But it's powerful, and you might want to uninstall it to free up disk space, switch to another development environment, or stop using it altogether.
However, uninstalling Anaconda is not as simple as dragging an icon to the trash. This package contains many hidden files, environment variables, and configurations that you need to process to ensure that the program is completely removed from your Mac. It's like a cunning snake.
I remember how difficult it was when I first uninstalled this distribution, as it left a lot of clutter, but I'm going to show you different ways – from fast app-based solutions to manual deletion methods.
How to delete Anaconda on Mac
Before we proceed, let's quickly review how to quickly delete Anaconda:
I think... | How to operate |
---|---|
Anaconda is uninstalled in a few clicks | Use CleanMyMac's "Applications" feature. |
Manually delete Anaconda | Use the terminal's conda remove anaconda-navigator command. |
Remove Anaconda from .bash_profile | Use the built-in Nano editor on the terminal. |
Use Finder to delete Anaconda | Delete /anaconda3 or /opt/anaconda3 via Go to > Go to Folder. |
Uninstall Miniconda | Delete the directory rm -rf ~/miniconda3 or sudo rm -rf /opt/anaconda3 in the terminal. |
Verify that Anaconda is completely uninstalled | Run conda --version in the terminal and then run echo $PATH to make sure there are no directories left. |
Uninstall the app and clean your Mac with one click
CleanMyMac can uninstall applications, delete junk files, and increase speed, helping your Mac run at the best performance. Available on Setapp.
Trial free security beta version
Uninstall Anaconda on Mac with one click
There are several ways to get rid of Anaconda on Mac, and I will start with my favorite method. This is the fastest way, and requires little effort.
Uninstall Anaconda using CleanMyMac
Using CleanMyMac is the easiest and fastest way to uninstall Anaconda. This is also my favorite Mac optimization tool, as it removes all hidden installation files, eliminates duplicates, and optimizes performance to make sure my Mac runs like new.
Here is how to completely uninstall Anaconda using CleanMyMac:
- Install and open CleanMyMac.
- Go to the Applications tab and click Scan.
- After the scan is complete, click Manage My Applications.
- Under Uninstall Programs > All Applications, select Anaconda-Navigator. Make sure everything is selected.
- Then, click Uninstall.
After clicking Uninstall, CleanMyMac will delete all Anaconda-related files, as these files may slow down your Mac or cause it to behave abnormally.
Use the terminal to manually remove Anaconda from your Mac completely
If you prefer the manual method (and you are a professional), you have full control and you can uninstall the distribution using the terminal.
Here is how to remove Anaconda from your Mac using a terminal:
- Go to Finder > Applications > Utilities > Terminal.
- Enter
conda remove anaconda-navigator
> Press Enter to confirm the deletion.
- Then, uninstall the directory using the commands
rm -rf ~/anaconda3
orsudo rm -rf /opt/anaconda3
(for system-wide installation). For the latter, enter your password when prompted.
Use the command
rm -rf ~/.condarc ~/.conda ~/.anaconda ~/.continuum
to delete hidden files and directories.Close the terminal. When you start the terminal again, you should no longer see the (base) environment indicator.
Tip: Manually removing Anaconda and similar software from your Mac can be troublesome, especially if you are not sure where the relevant files are hidden. I often encounter this problem on my Mac and the tool I rely on is Core Shell. It is everything the terminal should have. It allows you to perform all local terminal functions in a better, more customizable interface, and it also provides a GUI for managing remote connections. The app integrates with macOS Keychain and iCloud to remember all your connections, and it can save you a lot of time by making SSH connections seamless.
Remove Anaconda from .bash_profile
When Anaconda is installed, the PATH variable in the .bash_profile is modified to add its bin directory. This is very useful when you use this distribution, as it allows you to use Anaconda-related commands (like conda) directly from the terminal.
However, now that you have uninstalled Anaconda, the changes here will reference directories that do not exist, so they may cause errors when opening the terminal, or lead to incorrect Python versions.
You can edit the .bash_profile using the built-in Nano editor on the terminal.
Here is how to edit files using the Nano editor:
Go to Finder > Applications > Utilities > Terminal.
Enter
nano ~/.zshrc
> Press Enter.-
Find the text block between the following lines:
-
# >>> conda initialize >>>
-
#
-
Use
Option K
to delete everything.
- Press
Control X
to save and exit, then pressY
and press Enter.
- Reload the configuration file by entering the command
source ~/.zshrc
.
You can then exit the terminal.
Personal advice: I think you would agree that using Nano text editor on the terminal is annoying and slow. Rather than dealing with keyboard commands, I prefer CodeRunner's GUI. It makes editing configuration files easy, you just need the cursor and delete buttons. The app also makes encoding easy with its smart features such as code completion, automatic indentation and bracket management. You can configure it to work exactly the way you want and in any language.
Manually remove Anaconda from Mac via Finder
Maybe you've had enough of Anaconda's hidden files and want to make sure the installation is actually gone. In this case, you can use Finder to delete the file manually.
The following is a step-by-step process:
- Open Finder.
- Click Go to > Go to Folder in the menu bar.
- If you have Anaconda installed system-wide, type
/anaconda3
or/opt/anaconda3
and press Enter. - Select all files, right-click > select Move to Trash.
- Delete the anaconda3 folder. You can do this by returning to the opt folder (Go to Folder>/opt) or by using
Command Shift H
to return to the main location. - Right-click the Trash icon and click Clear Trash.
You have now deleted Anaconda. From there you can edit the .bash_profile or .zshrc file. to this end:
- Open Finder > Press
Command Shift H
to go to the home folder. - Press
Command Shift .
to display the hidden file. - Click on .bash_profile (for bash users) or .zshrc (for zsh users). You can choose the editor you like, but I recommend CodeRunner because it makes editing and running code easy and fast.
- Delete all content (including these lines) between
# >>> conda initialize >>>
and#
.
In some cases, especially when you are performing a system-wide installation, the .bash_profile file may be locked. If this is the case, you can go to the terminal and type the command sudo chown your_user_name ~/.bash_profile
. This should allow you to edit the file.
Note that for macOS Sequoia, you're likely to edit the .zshrc file instead of the .bash_profile, because zsh is now the default shell.
Tip: While manually deleting Anaconda files gives you more control, navigating between many folders associated with the software can be annoying. You can use PathFinder to simplify this task, which is basically an enhanced version of Finder. It shows you the path to a specific folder storage and has various shortcuts that make navigation easy. When uninstalling Anaconda, you will find its dual-pane interface very useful because you can access different storage and configuration folders at the same time.
Please read also:
- How to Uninstall Creative Cloud on Mac
- How to install Jupyter Notebook on Mac
- Uninstall Dropbox from Mac
- How to update Python on Mac
How to Uninstall Miniconda on Mac
Maybe you don't want to install Anaconda because it's very comprehensive, so you choose to install a simpler version of Miniconda. It doesn't have many packages preinstalled, but it still creates directories and configuration files specific to its environment.
To completely remove Miniconda, the process you need to follow is similar to deleting Anaconda.
Here is how to operate:
- Go to Finder > Applications > Utilities > Terminal.
- Uninstall the Miniconda directory by running the command
rm -rf ~/miniconda3
orsudo rm -rf /opt/anaconda3
. If prompted, enter your password. - Use the command
rm -rf ~/.condarc ~/.conda ~/.continuum
to delete the relevant configuration files.
You can now proceed to edit the .bash_profile or .zshrc file to delete the Miniconda edit.
Verify that Anaconda is completely uninstalled
Considering that Anaconda is difficult to uninstall completely, it is very important to verify that it is indeed gone. You don't want hidden files or settings to slow down your Mac or cause problems in the future.
Here is how to verify that Anaconda is uninstalled:
- Go to Finder > Applications > Utilities > Terminal > Check if the (base) indicator has disappeared.
- Type the command
conda --version
to see if the system still recognizes Anaconda or its package manager (conda).
If Anaconda is uninstalled correctly, you will not see the (base) indicator and the version check should display the error "conda not found". If you see a version number or some kind of conda-related response, it means that there is still some residue in your system.
After verifying that the installation does not exist, you can check that the directory still exists. to this end:
- Go to Finder > Applications > Utilities > Terminal.
- Type the command
echo $PATH
and view the output to make sure there is no Anaconda directory --/opt/anaconda3/bin
or~/anaconda3/bin
. If these directories still exist, you may need to manually delete them from the PATH in the .bash_profile or .zshrc file.
Completely uninstall Anaconda on your Mac
Uninstalling Anaconda on your Mac can be tricky due to hidden files and configurations, but it doesn't have to be a headache. If you are looking for the easiest way, CleanMyMac is your trusted assistant that can help uninstall all applications (and their dependencies) and simplify all Mac operations.
If you want a more hands-on approach, you can use Core Shell as an alternative to your terminal. It's more powerful and customizable, and it makes managing multiple hosts easy with a dedicated GUI. Apart from that, CodeRunner is great for editing those annoying shell file entries, while PathFinder is very good at managing files and directories through its dual-pane interface. All of these apps are available on Setapp – a platform with over 250 macOS and iOS apps, with just one subscription plan – you can try it for 7 days for free!
FAQ
Where is Anaconda installed on Mac?
Anaconda is usually installed in a folder named "anaconda3" in the user directory.
Here is how to find the installation path for Anaconda on your Mac:
Open Finder > Applications > Utilities > Terminal.
Type
echo $CONDA_PREFIX
and press Enter.-
Check the output:
- For single user: /Users/your-username/anaconda3
- For system scope: /opt/anaconda3
How to check if Anaconda is installed?
To check if Anaconda is installed on your Mac:
- Open Finder > Applications > Utilities > Terminal.
- Type
conda --version
and press Enter. - If Anaconda is installed, you will see the version number.
Optional: Type echo $PATH
to check if Anaconda's directory appears in the output.
This revised output maintains the original meaning while using different wording and sentence structures. The image URLs remain unchanged.
The above is the detailed content of How to uninstall Anaconda on Mac: Complete removal guide. For more information, please follow other related articles on the PHP Chinese website!

macOS WindowServer: Understanding High CPU Usage and Solutions Have you noticed WindowServer consuming significant CPU resources on your Mac? This process is crucial for your Mac's graphical interface, rendering everything you see on screen. High C

Screenshots are everywhere, yet we rarely think about their power to show, explain, and communicate. From reporting software bugs to sharing quick how-tos or funny images, screenshots enrich our daily interactions. While Windows users rely on the S

There are many formats of audio files, which is dazzling. It's cumbersome to manage, and it can be very frustrating when you try to play audio but your favorite player cannot play a specific file due to the file type. This seems hopeless, but don't worry! You can usually convert audio and video files without losing quality. Here we will walk you through how to convert video to MP3, MP4 to MP3, and many other useful audio and video conversions. Easily convert video and audio Save time finding file conversion tools with professional media converter Permute. Free trial safe and reliable! How to convert video to audio For example, converting video to audio (such as MP4 to MP3) is not just a conversion video

OneDrive for Mac: A Comprehensive Uninstall Guide OneDrive, Microsoft's cloud storage service, offers online file storage and synchronization across various platforms, including Mac. However, you might need to remove it for storage optimization, inc

Mac computers are not absolutely safe: A practical guide to protecting against malware You may have heard that Mac computers are not infected with malware and do not need to buy antivirus software. Although it makes sense, this statement is misleading. Compared to Windows, Mac computers are indeed more secure, thanks to their operating system architecture. But that doesn't mean they are indestructible. All kinds of malware, from malicious scripts to viruses and spyware, still have a chance to hack into your Mac. Spyware is particularly worthy of attention because it can cause serious damage to your Mac and your personal information. Let's learn what spyware is and how to remove it from your Mac. What is spyware? Fundamentally, spyware is a malicious intention

GIF Animation Map Guide: Easily convert YouTube videos to GIFs GIF animations are the perfect way to capture moments, express emotions, or add fun to a conversation. But how to convert YouTube videos to GIFs? It used to feel like a brand new challenge, and I didn’t realize how simple it was until I experienced it myself. This guide will show you how to easily make your favorite YouTube videos into amazing GIF animations. Let's get started! Getting done with YouTube videos to GIFs easily in a few steps Gifox software can easily record the screen into GIF animations. Available on the Setapp platform. Free trial Security test My requirements steps to create YouTube videos as GIFs and install them


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Dreamweaver Mac version
Visual web development tools

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

SublimeText3 English version
Recommended: Win version, supports code prompts!