If you have done the installation of Anaconda on the Mac and have worked on it and no longer needed, then you can now uninstall it for freeing up space. It will also do the prevention of the possibility that it will conflict with any other thing in Mac.
Here in this article, we will go through with the uninstallation of the Anaconda on Mac.
Firstly, here is some of the information on Anaconda.
What is Anaconda?
You must have heard about machine learning as well as artificial intelligence. Both of them rely on the analysis of various amounts of data, and it is performed by writing the custom code in the language of scripting, which is python. Anaconda is in actual distribution which runs on Mac, Linux, and Windows. It gives the allowance for downloading of various packages of Python data science. You can also do the use of it for analyzation of complex data and building the various machine models by the use of Python.
Anaconda is the open-source data package of science with a community of more than 6 million users. It is easy for downloading and installation.
Uninstallation of Anaconda
As there are various ways for the uninstallation of Anaconda. There are also many tools available for performing it. You can uninstall either through the navigator or through the terminal. It is also necessary to remove the associated files of it as it will not affect the device with its tools after proper uninstallation.
Follow the given methods for it:-
Uninstallation of the Anaconda on Mac through Terminal
Firstly, visit the Applications and then open the Utilities and launch Terminal.
Now type there conda install anaconda-clean and then click on the Return button.
After that, type anaconda-clean-yes.
For complete removal, open the application of Terminal or iTerm terminal.
Then remove the whole directory of Anaconda. It has the name of anaconda2 or anaconda3 by entering there rm -rf ~/anaconda3.
Now by the use of Anaconda-clean, perform the full cleaning of the uninstallation of Anaconda.
Uninstallation of the Anaconda from MacOS
Firstly, open the terminal and then do the removal of the whole directory of Anaconda. It will have the name as anaconda2 or anaconda3 through entering the given command-
rm -rf ~ /anaconda3.
For uninstallation in the entire form, open the terminal window and then the command of
rm -rf /anaconda Edit ~/.bash_profile which will do the removal of the Anaconda directory from the path of the environment variable. You may have to edit there.bashrc and/or.profile files other than the .bash_profile.
Also remove the hidden files as well as directories that may have been created in the location of directory:.condarc.
Firstly, quit the Anaconda application and then go through with the command of
As anaconda never starts with P as its name is like Python with the bits of it.
Going through with the command, you can perform the uninstallation of it.
Firstly, run the command of configs: conda install anaconda-clean anaconda-clean and simple remove
It is to be noted that Anaconda-Clean should be run before the simple remove.
You can also perform the installation of the Anaconda-Clean package from the Anaconda Prompt.
For removing all of the related files of Anaconda, you can delete each one of them by following the command of anaconda-clean.
Uninstallation of the Anaconda3 on Mac
Firstly, open the terminal and then perform the removal of the entire directory of Anaconda. It will appear as the name of anaconda2, or anaconda3 through entering there Uninstall Anaconda Manually. Then also quit the anaconda app.
Now open the Activity Monitor app and then in the tab of Monitor check there whether there are the processes of Anaconda that run in the background.
If you find them, then use the Force Quit Remove the Anaconda app from the folder of Applications.
Uninstallation of the Anaconda 3 from MacOS
In the anaconda3 go with the command of rm -rf ~/ anaconda3.
Now you have to remove the folder of backup.
By the use of Home windows uninstaller, you can perform the eliminating of the Anaconda. By the Data file Explorer, you can go to the house listing and can do the deleting of the Anaconda as well as the web directories that are related to it.
Method 3: Use a Third-party App or Cleaner
For the uninstallation by the Third-party app, you can go for CleanMyMac X. It is available on its website. They also provide a trial version of it.
Follow the given steps for it:-
Firstly, do the downloading of the CleanMyMac Xon your system.
Then follow the given instructions on your screen. After that, do double-click on the icon of it in the folder of Applications for launching.
Do the selection of the Uninstaller module in the given sidebar on the left side of the given window.
Do the locating of the Anaconda in the given list of applications on the right side and then click on the box which is located next to it. You also have to check the boxes that are next to the files that are associated with Linguist, Anaconda: Assistant, Designer, qml, and qdbusviewer.
Then click on the Uninstall button.
Now you can check there in your system if any of the files related to Anaconda are saved or are uninstalled.
As if you want to install it further, at any time, then here we mention the installation of it on Mac.
Again Re-Installation of Anaconda on Mac
You can install the Anaconda either by the use of a graphical installer or through the command line.
Perform the given steps for it:-
Firstly, do the downloading of the graphical macOS installer for the version of Python.
Do double click on the downloaded file and then click on the continue button for starting of the installation.
Now you have to answer the available prompts that appear on the screen. They are Introduction, License screens, and Read Me.
Then click on the Install button for the installation of the Anaconda in the ~/opt directory.
You can either go for the Change Install Location button for the installation in a different location.
Then on the screen of Destination Select, do the selection of the Install for me only.
Then click on the Continue button.
Now perform the verification of the installation.
Here we discussed how you can uninstall the Anaconda on Mac. Along with this, we have seen how you can afterward install Anaconda in your system. Give a read to this topic and also go for more.