Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

conda command not found even though path is exported

Tags:

macos

anaconda

I installed anaconda3 into my home directory. This is what I am seeing within the terminal:

enter image description here

and my .bash_profile looks like this:

export PATH="/Users/spotter/anaconda3/bin:$PATH"

So I don't understand why conda is not being recognized. When I navigate to anaconda3/bin there is a file called conda in there, but even when I try to call it within that pathway it is still not found.

like image 820
spotter Avatar asked Apr 13 '18 17:04

spotter


People also ask

Why does my command prompt not recognize conda?

To Solve 'conda' is not recognized as internal or external command Error First of all you need to check conda installation path. Just Open Anaconda Prompt and type this command: where conda Then Press windows key and type Open Advanced System Settings. Now, Click on Environment Variables. Edit Path variable.


1 Answers

Spotter, your path to conda is incorrect.

I'm on High Sierra MAC OS and just installed Anaconda3 via HomeBrew command. I had issue with running :

 conda

It'd also give me:

-bash: conda: command not found

I tried running:

export PATH=~/anaconda3/bin:$PATH

but it needs ENTIRE path. so here are the correct steps:

$ nano ~/.bash_profile

Now export the ENTIRE path, in my case it was:

export PATH=/usr/local/anaconda3/bin:$PATH

Exit out and run:

$ source ~/.bash_profile

Then try:

$ conda

it'll output:

 $ conda --version
    conda 4.4.10
like image 171
Galapagos Avatar answered Oct 05 '22 04:10

Galapagos