0

I have a new Macbook Pro, pre-installed with Catalina, that I am trying to install Anaconda on. I was following the instructions on Stack Overflow here to fix the install. However, when I entered the following in the .zsh terminal:

source ~/.zshrc

I get the following error message:

.zshrc:1: command not found: Source

I have tried searching for a solution to no avail. My search results indicated that the source command is supposed to be built into the zsh shell, so this seems odd. Is this a known issue with the new MacBook Pros? Is there a fix for this error?

Geoffrey Sametz
  • 618
  • 1
  • 6
  • 17
  • `source` or `Source`? Command names are case-sensitive. – chepner Nov 17 '19 at 20:26
  • Have you tried `conda init zsh`? Then restart the shell session after. – merv Nov 17 '19 at 21:11
  • @chepner the command is entered lower case, but the error message uses upper case. – Geoffrey Sametz Nov 17 '19 at 21:53
  • @merv The zsh shell doesn't recognize conda. I was trying to follow the fix linked in the OP so that it would recognize conda :) – Geoffrey Sametz Nov 17 '19 at 21:55
  • Locate where the binary is and use `./anaconda3/bin/conda init zsh` (or whatever the path is). – merv Nov 17 '19 at 21:57
  • @merv Weirdly, will not recognize conda... even if I actually cd directly into the directory containing conda and enter `conda init zsh` I get `zsh: command not found: conda`. – Geoffrey Sametz Nov 17 '19 at 22:01
  • You need to use `./conda` to use a local binary. – merv Nov 17 '19 at 22:02
  • That worked. Thank you! If you create an answer I'll green-check you :) – Geoffrey Sametz Nov 17 '19 at 22:04
  • I propose closing this as a duplicate of [How to run Conda?](https://stackoverflow.com/questions/18675907/how-to-run-conda) You can upvote [my answer there](https://stackoverflow.com/a/55526573/570918), which gives the same advice I provided here. – merv Nov 17 '19 at 22:11

0 Answers0