conda is not recognized as an internal or external command, operable program or batch file

42,368

Solution 1

I came across the same problem today. I was trying to install it on Windows 10 (64-bit OS). I installed Anaconda (version 4.4.0) without adding Anaconda to my PATH environment variable.

The command conda info returned the same error:

 "conda is not recognized as an internal or external command operable program or batch file"

I uninstalled Anaconda and installed it again, this time by selecting BOTH the options in the installation instruction as shown:

enter image description here:

Now the command conda info works, returning relevant information pertaining to version, platform, etc.

Hope this helps!!

Solution 2

"After 32-bit Anaconda installation ,Anaconda Navigator Not found Only Anaconda prompt is found"

First install Anaconda2-5.3.1-Windows-x86.exe

https://repo.continuum.io/miniconda/Miniconda3-latest-Windows-x86.exe

After this, open Anaconda Prompt

1.enter command to check python installation where python

(base) C:\Users\admin>where python
C:\Users\admin\Miniconda3\python.exe

2.enter command to check conda installation where conda

(base) C:\Users\admin>where conda
C:\Users\admin\Miniconda3\Library\bin\conda.bat
C:\Users\admin\Miniconda3\Scripts\conda.exe

3.enter command to find version conda --version

Inside the System Properties window, go to the Advanced tab and click on Environment Variables

Select the Path variable and click the Edit button. click the New button. Then, add these two locations:

C:\Users\*YourUser*\Anaconda3\Scripts
C:\Users\*YourUser*\Anaconda3

4.After this steps ,add Command to install Anaconda Navigator

 conda install  anaconda-navigator

Now open the start menu ,you can found the anaconda navigator

For further reference

https://appuals.com/fix-conda-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file/

Solution 3

Search pip in your system and set the location to your system environment variable. For example, for default setting, you may add following path: C:\ProgramData\Anaconda3\Scripts

Solution 4

You can add anaconda to path in Windows with SETX PATH in CMD.exe. Find where Anaconda is installed (If you cannot remember where it was installed, open Anaconda prompt, and you will see the path to your anaconda)

  • Search Windows

Open Anaconda prompt

  • Path to your Anaconda

patht to your conda

We need both anaconda and its scripts. In CMD:

SETX PATH "%USERPROFILE%\AppData\Local\Continuum\anaconda3;%USERPROFILE%\AppData\Local\Continuum\anaconda3\Scripts;"

Close and open CMD, and all, if everything went well, will be working.

Share:
42,368
gabboshow
Author by

gabboshow

Updated on August 19, 2020

Comments

  • gabboshow
    gabboshow over 3 years

    I was updating pandas (on windows 7) using:

    conda update pandas
    

    accidentally I closed the command window while updating. Now I can't start spyder and if I type conda in the command window I get:

    "conda is not recognized as an internal or external command operable program or batch file"
    

    if I type spyder --show=console I get

    from PyQt5.Qtwidgets import * 
    importerror: DLL load failed: The specific module could not be found
    

    Any idea how to solve this?