Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

zsh command not found: conda after upgrading to Catalina and even after reinstalling Anaconda

I recently updated my MacOS to Catalina, and now I have the infamous "zsh command not found: conda" when I enter "conda" in my terminal. I've read a number of solutions, and the easiest for me to try was to reinstall Anaconda in my home directory (specifically, the 2019.10 version of the installer installs in Users/myname/opt/anaconda3), as suggested by the folks at Anaconda here.

Well, I did just that and it did not solve the problem. What am I missing?

like image 389
Ashton T. Sperry Avatar asked Dec 10 '22 01:12

Ashton T. Sperry


1 Answers

From the Anaconda install docs:

In order to initialize after the installation process is done, first run source <path to conda>/bin/activate and then run conda init.

However,

If you are on macOS Catalina, the new default shell is zsh. You will instead need to run source <path to conda>/bin/activate followed by conda init zsh.

like image 169
hongsy Avatar answered Jan 05 '23 18:01

hongsy