===========================
Anaconda for macOS install
===========================

You can install Anaconda using either the graphical interface or the command line.

macOS graphical install
===========================

1. Download the `Anaconda installer <http://continuum.io/downloads.html>`_.

2. Optional: :doc:`Verify data integrity with MD5 or SHA-256 <hashes/index>`.
   `More info on hashes <http://conda.pydata.org/docs/download.html#what-about-cryptographic-hash-verification>`_

3. Double click the .pkg file. Answer the prompts on Introduction, Read Me, and License screens.

4. On Destination Select screen, you must select "Install for me only."

   IMPORTANT: If you get the error message "You cannot install Anaconda in this location", reselect "Install for me only".

   |

   .. image:: img/osxbug2.png

   |

5. On "Installation Type" you may choose to install in another location. Standard install  will put Anaconda in 
your home user directory .

   |

   .. image:: img/customizebutton.png

   |

   NOTE: Advanced users may select "customize" to not add Anaconda to the bash PATH:

   |

   .. image:: img/pathoption.png

   |

6. Click the Install button.

After a successful installation you will see output like this:

.. image:: /img/anaconda-install-osx.png

When your install is complete, begin using Anaconda with the instructions in :ref:`next`.

macOS command line install
===========================

1. Go to the `DOWNLOAD ANACONDA NOW <https://www.continuum.io/downloads>`_ page. 
   Beneath the "Graphical Installer" buttons for Anaconda for macOS, there are command-line text links for 
   Python versions 2.7 and 3.6.

2. Download the command line installer for Anaconda with Python 2.7 or Anaconda with Python 3.6.

3. Optional: :doc:`Verify data integrity with MD5 or SHA-256 <hashes/index>`.
   `More info on hashes <http://conda.pydata.org/docs/download.html#what-about-cryptographic-hash-verification>`_

4. Python 2.7: Open the Terminal.app or iTerm2 terminal application and enter the following:

   ``bash ~/Downloads/Anaconda2-4.3.0-MacOSX-x86_64.sh``

   Or for Python 3.6 enter the following:

   ``bash ~/Downloads/Anaconda3-4.3.0-MacOSX-x86_64.sh``

   NOTE: You should include the ``bash`` command regardless of whether you are 
   actually using the bash shell.
   
   NOTE: Replace ~/Downloads with your actual path and Anaconda3-4.3.0-MacOSX-x86_64.sh with your actual file name.

The output of a successful installation will include the messages "Installation
finished." and "Thank you for installing Anaconda!"

When your install is complete, begin using Anaconda with the instructions in :ref:`next`
