Why Anaconda does not recognize conda command?

anaconda, conda, python

Solution

For Windows

Go to `Control Panel\System and Security\System\Advanced System Settings` then look for `Environment Variables`.

Your user variables should contain `Path=Path\to\Anaconda3\Scripts`.

You need to figure where your `Anaconda3` folder is (i.e. the path to this folder) . Mine was in `C:\Users`.

For Linux

You need to add `conda` to `PATH`. To do so, type:

`export PATH=/path/to/anaconda3/bin:$PATH`.

Same thing, you need to figure the path to `anaconda3` folder (Usually, the path is stored in `$HOME`)

If you don't want to do this everytime you start a session, you can also add `conda` to `PATH` in your `.bashrc` file:

`echo 'export PATH=/path/to/anaconda3/bin:$PATH' >> ~/.bashrc`

Problem

I installed the latest version of Anaconda. Now I want to install OpenCV within it. When I type: ``` conda install -c https://conda.binstar.org/anaconda opencv ``` I get this message error: "conda is not recognized as internal command ..." (sorry, I try to translate from French because my OS is in French) The problem is that conda comes with Anaconda, so I wonder why lauching Anaconda and type the above command does not work ?

Original source

Related problems