As per advice here I have ensured that:
export PATH=~/anaconda/bin:$PATH
Is written into my .bash_profile file. However when using conda (i.e conda --version) the command is still not recognised:
-bash: conda: command not found
Why isn't conda working?
Anaconda installed itself into /anaconda rather than /anaconda3 as many resources tend to suggest.
Here's my .bash_profile in full:
# Set architecture flags
export ARCHFLAGS="-arch x86_64"
# Ensure user-installed binaries take precedence
export PATH=/usr/local/bin:$PATH
# Load .bashrc if it exists
test -f ~/.bashrc && source ~/.bashrc
if [ -f $(brew --prefix)/etc/bash_completion ]; then
source $(brew --prefix)/etc/bash_completion
fi
source '/Users/deepthought/Desktop/GoogleCloudSDK/google-cloud-sdk/path.bash.inc'
fi
source '/Users/deepthought/Desktop/GoogleCloudSDK/google-cloud-sdk/completion.bash.inc'
fi
# added by Anaconda2 4.3.0 installer
export PATH="/Users/deepthought/anaconda2/bin:$PATH"
# added by Anaconda2 4.3.0 installer
export PATH="//anaconda/bin:$PATH"
# The next line updates PATH for the Google Cloud SDK.
if [ -f '/Users/deepthought/n/google-cloud-sdk/path.bash.inc' ]; then source '/Users/deepthought/n/google-cloud-sdk/path.bash.inc'; fi
# The next line enables shell command completion for gcloud.
if [ -f '/Users/deepthought/n/google-cloud-sdk/completion.bash.inc' ]; then source '/Users/deepthought/n/google-cloud-sdk/completion.bash.inc'; fi
# added by Anaconda3 4.3.1 installer
export PATH="/anaconda/bin:$PATH"
export PATH=~/anaconda/bin:$PATH
On advice from comments echo $PATH gives:
/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands