I previously had Conda running smoothly on Mojave, but I\'ve found that the upgrade to Catalina moves the \"anaconda3\" folder to your Desktop > Relocated Items > Security >
I have the same problem, and this work for me : My solution:
#!/anaconda3/bin/python to #!/Users/YourUserName/anaconda3/bin/pythonexport PATH=''/Users/YourUserName/anaconda3/bin:$PATH"conda init zshTechnically this is reinstalling anaconda, however, I restored all my conda envs so, hopefully this is an acceptable solution!
Here is how I got it working on Catalina as of a few minutes ago (now using z-shell): - Verified the existence of "Relocated Items" directory on my desktop and the "anaconda3" directory and its contents inside - Navigated into the envs directory under "anaconda3" and left the finder window open (see screenshot)
THEN:
ran (this installed to /usr/local/anaconda3):
brew cask install anaconda
after installation was successful I opened my ~/.zshrc file (for my z-shell aliases) and added the following line:
export PATH="/usr/local/anaconda3/bin:$PATH"
saved my ~/.zshrc file, then reloaded with:
source ~/.zshrc
to verify conda command works now, I ran:
conda env list
for me, this showed a base env and that was it
then open Finder to the new envs location: open /usr/local/anaconda3/envs/.
I dragged (moved) all my old envs into the new envs folder, and then ran:
conda env list
And all my old envs are back! :)