Usually, users don’t have trouble trying to delete Anaconda from a Mac. So if you’re having problems with your Mac and Anaconda, the cause might actually be malware. Running a scan with MacKeeper’s Antivirus can help eliminate this.
Artificial intelligence and machine learning are becoming more and more prevalent in the modern world. If you’re working in this field or just curious about it, and you’re using Python, you might have come across Anaconda. This coding tool is designed specifically for data science.
But if you’re finished using it, want to free up some space on your internal drive, or test a different app, how do you uninstall Anaconda from your Mac? Read on to find out.
A note from our experts
Removing Anaconda from a Mac isn’t an issue in itself. Troublesome removal of the app might иу a sign of the presence of the virus. To check your Mac for viruses and malware, use MacKeeper’s Antivirus.
Step 1. Open Activity Monitor and quit all Anaconda processes Step 2. Open Applications right-click on Anaconda and select Show Original Step 3. Delete the anaconda3 folder and its contentsStep 4. Open Finder and go to Go > Go to FolderStep 5. Type ~/Library/Receipts, and press EnterStep 6. Find and move to trash all Anaconda-related files
How to uninstall Anaconda with Terminal
You can also delete Anaconda using Terminal. Terminal is a useful Apple utility that lets you control your computer through text commands.
Here are the commands to delete Anaconda in Terminal:
Launch Terminal from Applications > Utilities > Terminal.
Copy and paste the command rm -rf ~/anaconda to delete the entire Anaconda catalog.
How to uninstall the Anaconda prompt package
To delete the Anaconda prompt package, open Terminal and type in the following commands:
To delete a SciPy package in the myenv environment: conda remove -n myenv scipy.
To delete a SciPy package in the current environment: conda remove scipy.
To remove several packages simultaneously (e.g. SciPy and cURL): conda remove scipy curl.
To confirm that a package has been removed, check the full list of packages with the condalist command.
How to uninstall Miniconda on a Mac
Simply put, Miniconda is a smaller version of Anaconda. You can also uninstall it through Terminal.
You can uninstall Miniconda on your Mac using these steps:
Open Terminal and type in rm -rf ~/miniconda.
You can then edit ~./bash_profile for complete uninstallation of Miniconda from your PATH environment variable.
Finally, remove hidden files from the home directory by running rm -rf ~/.condarc ~/.conda ~/.continuum.
How to remove Anaconda PATH from .bash_profile
The final stage of uninstalling Anaconda is deleting the PATH from .bash_profile that it has created. There are two ways to do so.
How to remove the Anaconda PATH from .bash_profile using Terminal:
Type in the command export PATH=”/Users/jsmith/anaconda3/bin:$PATH”. In this case, jsmith is your actual username.
You can also manually remove the Anaconda PATH from .bash_profile:
Find the line that says export PATH="/Users/username/opt/anaconda3/bin:$PATH", and delete it.
Save and close the file.
Step 1. Open Finder, click on your name and press the left Shift + Cmd and Period on your keyboard and open the .bash_profile fileStep 2. Remove the line export PATH="/Users/username/opt/anaconda3/bin:$PATH" and close the file
FAQ
Do I have to uninstall Python before installing Anaconda?
You don’t have to delete or change Python before installing Anaconda. There is nothing that needs altering with globally installed packages from PIP, including Pandas and NumPy. There should also be no conflicts during joint installation — you can install Anaconda and Miniconda as per usual.
Does uninstalling Anaconda uninstall Python?
If Python was installed on your Mac before you downloaded Anaconda, it will return to its initial state.
We respect your privacy and
use cookies
for the best site experience.
Privacy Preferences Center
We use cookies along with other tools to give you the best possible experience while using the
MacKeeper website. Cookies are small text files that help the website load faster. The cookies we
use don’t contain any type of personal data meaning they never store information such as your
location, email address, or IP address.
Help us improve how you interact with our website by accepting the use of cookies. You can change
your privacy settings whenever you like.
Manage consent
All cookies
These cookies are strictly necessary for enabling basic website functionality (including page
navigation, form submission, language detection, post commenting), downloading and purchasing
software. The website might malfunction without these cookies.