Why Anaconda does not recognize conda command?

前端 未结 15 2092
挽巷
挽巷 2020-12-13 05:52

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
<         


        
15条回答
  •  死守一世寂寞
    2020-12-13 06:44

    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

提交回复
热议问题