Install anaconda on macOS with homebrew

Install anaconda on macOS with homebrew

Image for posthttps://brew.sh/assets/img/homebrew-social-card.png

Instead of spend time for hours to setup an environment and install hundred of dependencies for Data Science work, we must spend time on the work instead of setup right?

That?s why we need anaconda. In this blog I?ll demonstrate how easy to install anaconda with brew step by step.

Image for post

Anaconda Distribution

The World?s Most Popular Python/R Data Science Platform

The open-source Anaconda Distribution is the easiest way to perform Python/R data science and machine learning on Linux, Windows, and Mac OS X. With over 11 million users worldwide, it is the industry standard for developing, testing, and training on a single machine, enabling individual data scientists to:

Contents

  1. Download homebrew.
  2. Install package via homebrew.
  3. Setup the environment path.

Download homebrew and zsh

I recommended you to download homebrew and zsh, if you?re not familiar with this go to read this blog before continue reading this blog.

Install anaconda via homebrew

  1. Install anaconda via brew cask by executing

? brew cask install anaconda…PREFIX=/usr/local/anaconda3…? anaconda was successfully installed!

Let?s run jupyter notebook

Try to executing jupyter notebook in your terminal.

It?s not works ? why? Because our shell doesn?t know where is the anaconda folder so is, let?s add that folder to our shell path.

Setup the environment path.

Insert a line below on top of your ~/.zshrc file because when you trying to execute python on terminal it?ll search on folder /usr/local/anaconda3/bin first before search on default operating system path which means you can execute jupyter notebook and python .

export PATH=”/usr/local/anaconda3/bin:$PATH”

Restart terminal or use source ~/.zshrc to reload your shell environment and execute jupyter notebook an output will be like this

Image for post

26