How to Delete Anaconda from a Mac
Artificial intelligence and machine learning are becoming more prevalent in society. They are indispensable tools in big data analysis. This technology is created with the programming language Python.
Anaconda is a distributor that enables installing Python data science packages, analyzing large volumes of complex data, and building machine learning models based on Python.
Let’s review how to uninstall Anaconda on a Mac if you no longer need it.
What is Anaconda?
Anaconda is a free and open-source code for the programming languages Python and R. This distributor contains everything you need to perform data analysis and processing, as well as machine learning.
The tool connects several sets of binary systems into one structure. These include SciPy (statistical analysis package), NumPy (numerical calculations package), Pandas (data abstraction levels to integrate and transform data). The Conda packet management system manages the packet versions of Anaconda.
Why you may consider uninstalling Anaconda on your Mac
There can be several reasons for you to uninstall Anaconda from a Mac. For example, you may have installed it to get acquainted with the technology but don’t want to continue using it. Alternatively, you could simply want to free up some space on your internal drive or test a different software. Finally, you will need to delete Anaconda if it conflicts with another program on your MacBook.
How to completely remove Anaconda in a fast way
To uninstall Anaconda on a Mac quickly, you can use specialized software such as MacKeeper. It will help you avoid tracking down every related folder and file—the app will delete everything on its own, including app leftovers. If you’re removing Anaconda for the sake of getting more free space, MacKeeper will help you free up even more storage by suggesting to remove duplicates, junk files, and other elements you probably no longer need on your Mac.
It’s super easy to remove Anaconda with MacKeeper:
- Get the app and run it
- Go to Smart Uninstaller in the left menu
- Click Scan
- Go to Applications
- Tick Anaconda and click Remove Selected
How to delete Anaconda manually
You can erase Anaconda and auxiliary files yourself. Just do the following:
1. Quit Anaconda in Dock
2. Go to Activity Monitor by following Applications → Utilities → Activity Monitor
4. Quit every process related to Anaconda. To do that, select a process and click on a cross in the top left corner of the window
4.In the Applications folder, locate the Anaconda icon and move it to Trash
6. Go to the MacBook location and follow to Macintosh HD → Library → Receipts
7. Find and move to trash all Anaconda-related files:
How to uninstall Anaconda with Terminal
You can also delete Anaconda by using Terminal. Terminal is an extremely useful Apple utility that enables controlling your computer through a command line. You can utilize a set of particular commands with careful consideration of spaces and punctuation to achieve practically anything.
- Launch the app by going to Applications → Utilities → Terminal
- Copy and paste the command rm -rf ~/anaconda to delete the entire catalog of Anaconda files
How do I 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 conda list command
How to uninstall Miniconda on a Mac
Simply put, Miniconda is a smaller version of Anaconda. To uninstall Miniconda on your Mac
- Open Terminal and type in the following command: 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 ~/.conrinuum
How to uninstall Anaconda Navigator on a Mac
Terminal can be used to uninstall Anaconda Navigator on a Mac as well as other auxiliary Anaconda programs.
- Install the Anaconda Clean package by typing in conda install anaconda-clean
- To clean all Anaconda-related files and directories, type in the command anaconda-clean --yes.
- Enter the following commands:
- rm -rf ~/anaconda3 (removes the entire directory)
- rm -rf ~/ .anaconda_backup (deletes backups of files)
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. The first is through Terminal:
- Type in the command export PATH=”/Users/jsmith/anaconda3/bin:$PATH”. In this case, jsmith is your actual username.
Alternatively, do it manually:
- Go to the MacBook location → Macintosh HD → Users → Your username folder
- Locate the hidden .bash_profile file—to display hidden files and folders, press the left Shift + Command (⌘) keys, and the Full Stop key together
- Open the file and find the following line in it: users/[your username]/anaconda3
- Delete the line
- Save the file and quit Finder
Overall, deleting Anaconda from a Mac with all the leftover files and folders takes a while and some users might find the necessary use of Terminal challenging. If you don’t have a spare couple of hours, we recommend automating the process and using cleaning software such as MacKeeper.
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.