Installing on macOS

You can install Anaconda using either the graphical installer ("wizard") or the control line ("manual") instructions below. If you are unsure, cull the graphical install.

macOS graphical install

  1. Download the graphical macOS installer for your version of Python.

  2. RECOMMENDED: Verify data integrity with SHA-256 . For more information on hashes, see What about cryptographic hash verification?

  3. Double-click the downloaded file and click continue to start the installation.

  4. Respond the prompts on the Introduction, Read Me, and License screens.

  5. Click the Install button to install Anaconda in your ~/opt directory (recommended):

    ../../../_images/osx-install-type.png

  6. OR, click the Change Install Location button to install in another location (not recommended).

    On the Destination Select screen, select Install for me only.

    Note

    If y'all get the mistake message "You cannot install Anaconda in this location," reselect Install for me only.

    ../../../_images/osx-install-destination.png

  7. Click the keep button.

  8. Optional: To install PyCharm for Anaconda, click on the link to https://www.anaconda.com/pycharm.

    ../../../_images/osx-install-pycharm.png

    Or to install Anaconda without PyCharm, click the Keep button.

  9. A successful installation displays the following screen:

    ../../../_images/osx-install-success.png

  10. Verify your installation .

Using the control-line install

Utilise this method if you prefer to use a terminal window.

  1. In your browser, download the command-line version of the macOS installer for your system.

  2. RECOMMENDED: Verify information integrity with SHA-256 . For more information on hash verification, see cryptographic hash validation.

    • Open a last and run the following:

                                                          shasum                          -                          a                          256                          /                          path                          /                          filename                        

    Note

    Replace /path/filename with your installation'due south path and filename.

  3. Install for Python 3.7 or 2.seven:

    • For Python 3.7 enter the following:

                                                          bash                          ~/                          Downloads                          /                          Anaconda3                          -                          2020.02                          -                          MacOSX                          -                          x86_64                          .                          sh                        
    • For Python two.vii, open the Terminal.app or iTerm2 terminal application and then enter the following:

                                                          bash                          ~/                          Downloads                          /                          Anaconda2                          -                          2019.10                          -                          MacOSX                          -                          x86_64                          .                          sh                        

    Note

    Include the bash command regardless of whether or not yous are using the Bash shell.

    Note

    Replace ~/Downloads with your actual path and Anaconda3-2020.02-MacOSX-x86_64.sh with bodily name of the file you lot downloaded.

  4. The installer prompts "In gild to continue the installation process, please review the license agreement." Click Enter to view the license terms.

  5. Gyre to the bottom of the license terms and enter aye to agree to them.

  6. The installer prompts you to Press Enter to confirm the location, Press CTRL-C to abolish the installation or specify an alternate installation directory. If you confirm the default location, it will display PREFIX=/dwelling house/<user>/anaconda<2 or three> and keep the installation.

    Annotation

    Dissimilar the graphical install, installing the shell file will place information technology in ~/anaconda<2 or iii> by default, not ~/opt. This is due to limitations with installing .pkg files on macOS Catalina.

    Installation may take a few minutes to consummate.

    Annotation

    Nosotros recommend you accept the default install location. Practice non cull the path as /usr for the Anaconda/Miniconda installation.

  7. The installer prompts "Do you wish the installer to initialize Anaconda3 by running conda init?" Nosotros recommend "yes".

    Note

    If you enter "no", then conda will non modify your shell scripts at all. In order to initialize after the installation process is washed, showtime run source <path to conda>/bin/activate and so run conda init .

    Notation

    If you lot are on macOS Catalina, the new default shell is zsh. Yous volition instead need to run source <path to conda>/bin/activate followed past conda init zsh .

  8. The installer displays "Thank y'all for installing Anaconda!"

  9. Optional: The installer describes the partnership between Anaconda and JetBrains and provides a link to install PyCharm for Anaconda at https://www.anaconda.com/pycharm.

  10. Close and open your terminal window for the Anaconda installation to have effect.

  11. To control whether or not each shell session has the base environment activated or not, run conda config --set auto_activate_base False or True . To run conda from anywhere without having the base environment activated by default, utilise conda config --set auto_activate_base Simulated . This only works if you have run conda init offset.

    Note

    conda init is available in conda versions iv.half dozen.12 and subsequently.

  12. Verify your installation .