How to Safely Uninstall Anaconda From a Mac
Reading Time: 2 minutesUninstalling Anaconda from your Mac isn’t as straightforward as you’d think, but we’ll teach you how to remove it and its leftover files thoroughly.
Getting rid of Anaconda on a Mac isn’t a straightforward process. Although you can drag the Anaconda Navigator—the GUI of the Anaconda distribution—into the Trash, that won’t delete Anaconda-related files, directories, and command-line integrations.
Instead, you must run a series of commands via Terminal to uninstall Anaconda completely from macOS. This Anaconda removal tutorial for the Mac will walk you through the entire procedure.
Install and Run the Anaconda Clean Package
Anaconda offers a cleanup package capable of removing all configuration files related to the distribution. You must install and run it through the Terminal app on your Mac. To do that, follow these steps:
- Open the Launchpad and select Other > Terminal.
- Type the following command and press Return to install the cleanup package:
conda install anaconda-clean
- Execute the command below to initiate the package. The variable at the end allows you to skip confirming each file and folder the Anaconda cleaner deletes.
anaconda-clean --yes
Delete the Anaconda Directory and Backups
After running the Anaconda cleaner, you must delete Anaconda’s installation directory. Again, Terminal should help you with that:
rm -rf ~/opt/anaconda3
Optionally, if you don’t have much storage space on your Mac, consider deleting the Anaconda backup folder using the following command:
rm -rf ~/.anaconda_backup
Delete the Anaconda PATH Variable
With Anaconda uninstalled, you must remove the distribution from the Terminal’s Bash profile using TextEdit. Here’s how:
- Execute the following command in Terminal to open the Bash profile in TextEdit.
open .bash_profile
- Delete the following line:
export PATH='/Users/[your username]/anaconda3/bin:$PATH'
- Select File > Save from the macOS menu bar.
Delete Anaconda Leftovers Manually
If you want to be thorough, you can remove Anaconda leftovers manually from various locations on your Mac. To do that, open Finder, select Go > Go to Folder from the menu bar, and visit the following directories:
- ~/Library/Receipts
- ~/Library/Caches
- ~/Library/Preferences
- ~/Library/Containers
- ~/Library/Application Support
- ~/Library/Application Scripts
- ~/Library/Logs
Search for files that end with the words ‘Anaconda’ and ‘conda’ inside each directory and move them into the Mac’s Trash.
Anaconda Safely Uninstalled From Your Mac
Uninstalling Anaconda from your Mac isn’t complicated if you follow the proper steps. Removing it not only declutters your system but also frees up valuable storage space and eliminates potential conflicts with other Python installations.
Reference: https://www.makeuseof.com/how-to-uninstall-anaconda-mac/
Ref: makeuseof
MediaDownloader.net -> Free Online Video Downloader, Download Any Video From YouTube, VK, Vimeo, Twitter, Twitch, Tumblr, Tiktok, Telegram, TED, Streamable, Soundcloud, Snapchat, Share, Rumble, Reddit, PuhuTV, Pinterest, Periscope, Ok.ru, MxTakatak, Mixcloud, Mashable, LinkedIn, Likee, Kwai, Izlesene, Instagram, Imgur, IMDB, Ifunny, Gaana, Flickr, Febspot, Facebook, ESPN, Douyin, Dailymotion, Buzzfeed, BluTV, Blogger, Bitchute, Bilibili, Bandcamp, Akıllı, 9GAG