Setting up Anaconda3 to work with macOS Catalina zsh shell

Kuan Hoong, Ph.D
1 min readOct 11, 2019

--

I found out upon updating my MacBook Pro to the latest macOS Catalina, Anaconda3 is no longer working with the latest zsh shell terminal. Command such as:

jupyter notebook

is no longer working.

The work around for this problem is to copy the codes from ~/.bash_profile to ~/.zshrc

For example, here are the codes from my ~/.bash_profile.

Simply type the following code in your terminal.

open ~/.bash_profile

and you can see the following codes:

# added by Anaconda3 5.2.0 installer
export PATH="/anaconda3/bin:$PATH"
# added by Anaconda3 2019.07 installer
# >>> conda init >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$(CONDA_REPORT_ERRORS=false '/Users/drpoo/anaconda3/bin/conda' shell.bash hook 2> /dev/null)"
if [ $? -eq 0 ]; then
\eval "$__conda_setup"
else
if [ -f "/Users/drpoo/anaconda3/etc/profile.d/conda.sh" ]; then
. "/Users/drpoo/anaconda3/etc/profile.d/conda.sh"
CONDA_CHANGEPS1=false conda activate base
else
\export PATH="/Users/drpoo/anaconda3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda init <<<

Copy the codes and open ~/.zshrc

vi ~/.zshrc

press i to insert and right click your mouse to paste the codes. Once done, press esc and type :wq to save and exit.

Lastly, restart your terminal, and your Anaconda should be working fine. :)

--

--

Kuan Hoong, Ph.D

Google Developer Expert (GDE) in Machine Learning, Lead Data Scientist, Malaysia TensorFlow User Group, Malaysia R User Group