Search code examples
macosanacondahomebrewapple-m1

How to install anaconda through home-brew m1 mac


I just got an m1 Mac and installed anaconda using home-brew:

brew install anaconda

It looked like it worked great, except that when I actually go to use anaconda and type "conda" I get the dreaded "conda command not found" error. How do I fix this?

Based on the answer given by @Peter here as well as the anaconda documentation, adding to path is no longer recommended. The answers here also did not solve the problem.


Solution

  • Figured it out! Challenge lay in the home-brew path. To run the conda init zsh command, detailed by @Sebastian in the answer here, I had to specify home-brew, as well as back up a couple directories. The command that actually got it done in terminal was:

    ~/../../opt/homebrew/anaconda3/bin/conda init zsh
    

    Happy home-brew anaconda-ing on your new m1s everyone.