Ubuntu – conda command not found

conda

I'm following a Cousera course on Machine learning. We have to use some specific tools such as Graphlab create. Yet, after installing Anaconda with

bash /Download/Anaconda2-4.0.0-Linux-x86_64.sh

I had to create a new conda environment with Python 2.7.x (I don't now why they didn't moved to python 3 but it seems that it is the way the teachers do its thing on)

conda create -n gl-env python=2.7 anaconda=4.0.

And it ansswered me conda: command not found

I read the related question posted by vincent and tried the best answer by George Udosen with

sudo mv /root/anaconda3 /home/$mike

But still, I received mv: cannot stat '/root/anaconda3': No such file or directory

Best Answer

I found an answer in madcurie's answer

for anaconda 2 :

export PATH=~/anaconda2/bin:$PATH

for anaconda 3 :

export PATH=~/anaconda3/bin:$PATH

for anaconda 4 :

Use the Anaconda Prompt

and then

conda --version  

to confirm that it worked.

Related Question