Why Anaconda does not recognize conda command?

前端 未结 15 2065
挽巷
挽巷 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:21

    As other users said, the best way for Windows users is to set the global environment variable.

    I install the Miniconda3 for MXNet.

    Before I do something, only Anaconda Prompt works for conda.

    After setting the global environment variable, The CMD and Git Bash work. But in some IDEs like RStudio, the nested Git Bash doesn't work.

    After restarting my computer, the Git Bash in the RStudio works for conda.

    I hope these tests helps for you.

    0 讨论(0)
  • 2020-12-13 06:23

    I had a similar problem. I searched conda.exe and I found it on Scripts folder. So, In Anaconda3 you need to add two variables to PATH. The first is Anaconda_folder_path and the second is Anaconda_folder_path\Scripts

    0 讨论(0)
  • 2020-12-13 06:23

    I suspect you forget to export PATH, anaconda/bin must be added in your $PATH. (Linux, OSX common problem). On Windows make sure you run install and commands as administrator.

    0 讨论(0)
  • 2020-12-13 06:24

    When you install anaconda on windows now, it doesn't automatically add Python or Conda to your path so you have to add it yourself.

    If you don’t know where your conda and/or python is, you type the following commands into your anaconda prompt

    Next, you can add Python and Conda to your path by using the setx command in your command prompt.

    Next close that command prompt and open a new one. Congrats you can now use conda and python

    Source: https://medium.com/@GalarnykMichael/install-python-on-windows-anaconda-c63c7c3d1444

    0 讨论(0)
  • 2020-12-13 06:25

    I had a similar problem and I did something like the below mentioned steps with my Path environment variable to fix the problem

    1. Located where my Anaconda3 was installed. I run Windows 7. Mine is located at C:\ProgramData\Anaconda3.

    2. Open Control Panel - System - Advanced System Settings, under Advanced tab click on Environment Variables.

    3. Under System Variables, located "Path" add the following: C:\ProgramData\Anaconda3\Scripts;C:\ProgramData\Anaconda3\;

    Save and open new terminal. type in "conda". It worked for me.

    Hope these steps help

    0 讨论(0)
  • 2020-12-13 06:25

    It's not recommended to add conda.exe path directly into the System Environment Variables at stated by anaconda installer :

    For Windows Users, Open Conda Prompt Shortcut and change the Target into the Correct Address :

    0 讨论(0)
提交回复
热议问题