Here I’ll walk through installing Anaconda on macOS and setting up the terminal environment.
Installing Anaconda
Go to the Anaconda homepage and scroll down to find the downloads.

Choose the installer that matches your environment.
Since this guide covers macOS, select the 64-bit Graphical Installer.
Launch the installer and follow the instructions to complete the installation.
There are two installers for Mac. The 64-bit Graphical Installer installs Anaconda through a GUI, which is the more familiar approach, and unless you have a reason to do otherwise, you can install Anaconda this way.
The 64-bit Command Line Installer downloads a *.sh file.
This is a shell script installer, used when you want to install from the terminal.
Since installing software on Linux is normally done from the terminal, people who are used to Linux may find this route easier. (Probably.)
Setting up the command line
When you install on macOS, all that appears in your applications list is Anaconda-Navigator, and as it stands you can’t use Anaconda or Python from the terminal.
If you want to use the conda command, for example to install packages, you need to activate Anaconda.
To activate Anaconda (that is, to make the conda command available):
conda activate
Run the above.
The conda command should now work.
If activating the conda environment every time is a hassle, you can have it activate automatically.
To do so, run the following in the terminal:
~/opt/anaconda3/bin/conda init シェル名
Use the name of the shell you’re actually using. If you have no idea and have never touched this setting, you’re most likely on the default shell (zsh on macOS), so substitute that for the shell name.
~/opt/anaconda3/bin/conda init zsh
Now, when you restart the terminal, the conda environment will be activated automatically and you won’t need to type conda activate.
To turn off automatic activation,
conda config --set auto_activate_base false
run the following in the terminal.
