HEART LOCKET
HEART LOCKET

Reputation: 73

Anaconda not installing on mac—conda not found

I have an intel 2020 mac and Anaconda will not install into the command line. I have followed the graphical installer directions exactly but whenever I type conda i receive 'command not found.'

How is basic software for data science this hard to install? It is making me want to give up, I have tried everything online including resetting path or whatever. I am a beginner coder and I can't believe such an essential tool is so hard to install?

Upvotes: 6

Views: 19486

Answers (4)

For me using a Mac M1, this was the path that worked for me:

export PATH="/opt/anaconda3/bin:$PATH"

Then you restart the terminal by simply closing it and reopening it or by using source ~/.zshrc or source ~/.bashrc.

Finally run conda init zsh and close and open the terminal again.

Upvotes: 0

Max Alonzo
Max Alonzo

Reputation: 125

For those encountering this issue more recently, the location of anaconda has changed.

Here is what works as of today on my Mac M1 as of sept 2024:

export PATH="/opt/homebrew/anaconda3/bin:$PATH"

Then the command provided in other answers: conda init zsh

Upvotes: 8

D C
D C

Reputation: 728

  • for conda command not found.

  • Open Terminal Open bash profile : sudo vi ~/.bash_profile

  • add this line in bash_profile :

    export PATH="/Users/<username>/opt/anaconda3/bin:$PATH"
    
  • save and quit : esc + :wq

    source ~/.bash_profile
    
  • Close and reopen the terminal and check conda --version

Upvotes: 4

NewbieDeveloper
NewbieDeveloper

Reputation: 456

Sometimes, if you don't restart your terminal after you have installed anaconda also, it gives this error.

Close your terminal window and restart it.

If you're using zsh and it has not been set up to read .bashrc, you need to add the anaconda directory to the zsh shell PATH environment variable.

Type: export PATH='/Users/username/anaconda3/bin:$PATH'

Then: conda init zsh

Make sure to replace /username/anaconda with your actual path.

Save, exit the terminal and then reopen the terminal. conda command should work.

Upvotes: 9

Related Questions