This post introduces how to install Miniconda on Mac.
Miniconda is a free minimal installer for conda. It is a small, bootstrap version of Anaconda that includes only conda, Python, the packages they depend on, and a small number of other useful packages, including pip, zlib and a few others. Use the conda install command to install 720+ additional conda packages from the Anaconda repository. 237534 total downloads Last upload: 5 days and 21 hours ago Installers. Info: This package contains files in non-standard labels. Conda install noarch v4.12.0; To install this package with conda run one of the following: conda install -c plotly plotly conda install -c plotly/label/test plotly.
(For installing Miniconda on Linux OS, check out this post.)
(For commonly used conda commands check this post.)
(For the comparison among Anaconda, Miniconda, and Virtualenv with pip, check this post.)
Step 1: download Miniconda (bash installer) from
see the highlighted in the pic below.
A file called Miniconda3-latest-MacOSX-x86_64.sh will be shown in your Downloads folder.
Step 2: Open a Terminalwindow.
(If you don’t know how to open a terminal window, through lauchpad type in Terminal, you will see the application.)
In the terminal window, type in
Step 3: run the bash “shell” script to install Miniconda
In the terminal window, type in the following.
Scroll through the license (press the Space bar or Enter to move through quickly), type ‘yes’ to approve the terms, and then accept all the installation defaults.
Step 4: Close the Terminal window, and open a new Terminal window.
in the newly opened Terminal window.
Type the following:
If you see something like the following, it means you have successfully installed conda via miniconda on your Mac.
conda 4.5.11
Step 5: Uninstalling Miniconda
To uninstall Python Anconda/Miniconda, we just simply remove the installation folder and remove the environment variables set in the hidden file .bash_profile in your home directory. For my installation, it will be just like this.
Then, you can edit the .bash_profile file and remove the following entries added for Anaconda/Miniconda directory from your PATH environment variable.
If you do not know where the hidden .bash_profile is located and how to edit it, see below for detailed instructions.
(1) Open a new terminal and go to your home directory. You can do this by using the command below.
(2) use the following command to list all files, including hidden files in your home directory.
![Conda Mac Download Conda Mac Download](/uploads/1/1/8/9/118937903/641509552.png)
(3) Use the
cat
command to see the contents of the hidden file .bash_profile. Type the following command into your terminal.You will see something like the following (depends on what you installed, if you installed Miniconda3, you will only see the first two lines. If you installed Anaconda3, you will see the bottom two lines.
Mac Install Conda
(4) To remove installed Miniconda/Anaconda from your .bash_profile use the command below to edit the file using the nano editor.
Remove the Miniconda /Anoconda path in your .bash_profile hidden file.
Then Type control + X to exit out of nano
Save changes by typing Y.
Close the terminal, and now Miniconda/Anaconda should be successfully uninstalled from your Mac.
(Tested on macOS Mojave. Note that you can install Miniconda onto your Mac even when you are not an admin user.)
Mac Conda Opencv
For commonly used conda commands check this post.
Mac Conda Command Not Found
For the comparison among Anaconda, Miniconda, and Virtualenv with pip, check this post.