How to Delete Anaconda from a Mac
Mac Tips

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:

  1. Get the app and run it
  2. Go to Smart Uninstaller in the left menu
  3. Click Scan
  4. Go to Applications
  5. 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 ApplicationsUtilitiesActivity 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

move anaconda app to trash from application folder

6. Go to the MacBook location and follow to Macintosh HDLibraryReceipts

7. Find and move to trash all Anaconda-related files:

~/Library/Receipts/io.continuum.pkg.anaconda-client.bom

~/Library/Receipts/io.continuum.pkg.anaconda-client.plist

~/Library/Receipts/io.continuum.pkg.anaconda-navigator.bom

~/Library/Receipts/io.continuum.pkg.anaconda-navigator.plist

~/Library/Receipts/io.continuum.pkg.anaconda-project.bom

~/Library/Receipts/io.continuum.pkg.anaconda-project.plist

~/Library/Receipts/io.continuum.pkg.anaconda.bom

~/Library/Receipts/io.continuum.pkg.anaconda.plist

receipts folder in mac library folder

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.

  1. Launch the app by going to ApplicationsUtilitiesTerminal
  2. Copy and paste the command rm -rf ~/anaconda to delete the entire catalog of Anaconda files
delete anaconda packages with terminal command

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

  1. Open Terminal and type in the following command: rm -rf ~/miniconda
  2. You can then edit ~./bash_profile for complete uninstallation of Miniconda from your PATH environment variable.
  3. 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.

  1. Install the Anaconda Clean package by typing in conda install anaconda-clean
  2. To clean all Anaconda-related files and directories, type in the command anaconda-clean --yes.
  3. 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:

  1. Type in the command export PATH=”/Users/jsmith/anaconda3/bin:$PATH”. In this case, jsmith is your actual username.
delete path from bash_profile file with terminal”

Alternatively, do it manually:

  1. Go to the MacBook location → Macintosh HDUsers → Your username folder
  2. Locate the hidden .bash_profile file—to display hidden files and folders, press the left Shift + Command (⌘) keys, and the Full Stop key together
  3. Open the file and find the following line in it: users/[your username]/anaconda3
  4. Delete the line
  5. Save the file and quit Finder
ash_profile hidden file inside the users folder

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.

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.

 

More Related Articles

arrow

Run Application

Double-Click on MacKeeper.pkg

Click Continue