Fix - zsh: command not found: conda [macOS]

% conda
zsh: command not found: conda

If you are getting the above error message on macOS Terminal after you try conda command, there found the below reasons,

  1. conda package has not been installed on your device.
  2. conda has been installed but the path is not set.
zsh: command not found: conda

Download and install conda from its website for macOS:



This should add the environment path to the zshrc profile

If conda is already installed make sure you add its path to the environment variable in the zsh profile file:

  1. Open Zsh profile file: nano ~/.zshrc
  2. Add the line at the bottom of the file:
    export PATH ="/Users/c2c/anaconda/bin:$PATH"
  3. Save the file.
  4. Apply the changes: source ~/.zshrc

You can check if the changes got done properly by running the command conda --version if you do not get the error again and you see the version displayed that you are good to go!

Try Out Code2care Dev Tools:


Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and software developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include learnings, tutorials, trouble-shooting steps, video tutorials, code snippets, how-to, blogs, articles, etc.

🎉 We are celebrating the 10th years of Code2care! Thank you for all your support!

We strongly support Gender Equality & Diversity.