Conda command not found Conda command not found python python

Conda command not found


If you're using zsh and it has not been set up to read .bashrc, you need to add the Miniconda directory to the zsh shell PATH environment variable. Add this to your .zshrc:

export PATH="/home/username/miniconda/bin:$PATH"

Make sure to replace /home/username/miniconda with your actual path.

Save, exit the terminal and then reopen the terminal. conda command should work.


If you have the PATH in your .bashrc file and are still getting

conda: command not found

Your terminal might not be looking for the bash file.Typebash in the terminal to ensure you are in bash and then try:conda --version


For those experiencing issues after upgrading to MacOS Catalina.

Short version:

# 1a) Use tool: conda-prefix-replacement - # Restores: Desktop -> Relocated Items -> Security -> anaconda3curl -L https://repo.anaconda.com/pkgs/misc/cpr-exec/cpr-0.1.1-osx-64.exe -o cpr && chmod +x cpr./cpr rehome ~/anaconda3# or if fails#./cpr rehome ~/anaconda3 --old-prefix /Anaconda3source ~/anaconda3/bin/activate# 1b) Alternatively - reintall anaconda - # brew cask install anaconda# 2) conda initconda init zsh# or# conda init    

Further reading - Anaconda blog post and Github discussion.