After Anaconda installation, conda command not found in path

After Anaconda installation, conda command not found in path

After Anaconda installation, conda command not found in path

After successfully install anaconda to manage the python environment on a Mac, conda command execution at the prompt returns:

❯ conda env list zsh: command not found: conda

Ensure that the following is in .zshrc file.

export PATH=/opt/anaconda3/bin:$PATH  
# >>> conda initialize >>>  
# !! Contents within this block are managed by 'conda init' !!  
__conda_setup="$('/opt/anaconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"  
if [ $? -eq 0 ]; then  
    eval "$__conda_setup"  
else  
    if [ -f "/opt/anaconda3/etc/profile.d/conda.sh" ]; then  
        . "/opt/anaconda3/etc/profile.d/conda.sh"  
    else  
        export PATH="/opt/anaconda3/bin:$PATH"  
    fi  
fi  
unset __conda_setup  
# <<< conda initialize <<<
GFL