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

1 Answer

answered Jul 2, 2019 by Anurag (33.1k points)

In the updated version of Anaconda, on Windows, the PATH environment variable is no longer changed by default, as this can cause trouble with other software. The recommended approach is to instead use Anaconda Navigator or the Anaconda Command Prompt when you wish to use Anaconda software.

Follow these steps to add a PATH environment variable for Anaconda:

  1. Open Anaconda Prompt

  2. Check Conda Installed Location.

  3. Open Advanced System Settings

  4. Click on Environment Variables

  5. Edit Path

  6. Add New Path

  7. Open Command Prompt and Check Versions

  8. After 7th step type conda install anaconda-navigator in cmd then press y.

Hope this answer helps.

If you wish to learn Python, then check out this Python Course by Intellipaat.

2) Check Conda Installed Location.

6) Add New Path

C: \Users\ RajaRama\ Anaconda3\ Scripts C: \Users\ RajaRama\ Anaconda3 C: \Users\ RajaRama\ Anaconda3\ Library\ bin

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 (replace C:\Users\mgalarnyk\Anaconda2 with the results you got when running where python and where conda).

SETX PATH "%PATH%;C:\Users\mgalarnyk\Anaconda2\Scripts;C:\Users\mgalarnyk\Anaconda2"

Just to be clear, you need to go to the controlpanel\System\Advanced system settings\Environment Variables\Path, then hit edit and add:

C: Users\ user.user\ Anaconda3\ Scripts

Go To anaconda prompt(type "anaconda" in search box in your laptop). type following commands

For conda --version greater than 4.6, from the base of your Anaconda promt, run

conda update conda conda init

5 paths:

C: \Users\ shtosh\ anaconda3 C: \Users\ shtosh\ anaconda3\ Library\ mingw - w64\ bin C: \Users\ shtosh\ anaconda3\ Library\ usr\ bin C: \Users\ shtosh\ anaconda3\ Library\ bin C: \Users\ shtosh\ anaconda3\ Scripts


Hello Guys, How are you all? Hope You all Are Fine. Today I am trying to check conda version with this command conda –version but I am facing following error ‘conda’ is not recognized as internal or external command in python. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

I am trying to check conda version with this command conda –version but I am facing following error.

'conda' is not recognized as internal or external command

How To Solve ‘conda’ is not recognized as internal or external command Error ?

  1. How To Solve 'conda' is not recognized as internal or external command Error ?

    To Solve 'conda' is not recognized as internal or external command Error First of all you need to check conda installation path. Just Open Anaconda Prompt and type this command: where conda Then Press windows key and type Open Advanced System Settings. Now, Click on Environment Variables. Edit Path variable. And Then Add New Path. In my case C:\Users\ssc\Anaconda3\Scripts; C:\Users\ssc\Anaconda3; C:\Users\ssc\Anaconda3\Library\bin; Just add above 3 in PATH variable. Then, Open Command Prompt and Check Versions And type conda install anaconda-navigator in cmd then press y Now your error must be solved.

  2. 'conda' is not recognized as internal or external command

    To Solve 'conda' is not recognized as internal or external command Error First of all you need to check conda installation path. Just Open Anaconda Prompt and type this command: where conda Then Press windows key and type Open Advanced System Settings. Now, Click on Environment Variables. Edit Path variable. And Then Add New Path. In my case C:\Users\ssc\Anaconda3\Scripts; C:\Users\ssc\Anaconda3; C:\Users\ssc\Anaconda3\Library\bin; Just add above 3 in PATH variable. Then, Open Command Prompt and Check Versions And type conda install anaconda-navigator in cmd then press y Now your error must be solved.

Solution 1: Update the environment variable

  • First of all you need to check conda installation path.
  • Just Open Anaconda Prompt and type this command: where conda
  • Then Press windows key and type Open Advanced System Settings.
  • Now, Click on Environment Variables.
  • Edit Path variable.
  • And Then Add New Path. In my case
C:\Users\ssc\Anaconda3\Scripts C:\Users\ssc\Anaconda3 C:\Users\ssc\Anaconda3\Library\bin
  • Just add above 3 in PATH variable.
  • Then, Open Command Prompt and Check Versions
  • And type conda install anaconda-navigator in cmd then press y
  • Now your error must be solved.

Solution 2: add Anaconda to the PATH while installation

Just use Navigator or the Anaconda Prompt although you can always add it to your PATH as well. During the install the box to add Anaconda to the PATH is now unchecked but you can select it.

Summary

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?

Also, Read

  • NumPy 1.21.2 may not yet support Python 3.10

How do you solve conda is not recognized as an internal or external command?

Your answer.
Open Anaconda Prompt:.
Check Conda Installed Location. where conda..
Open Advanced System Settings..
Click on Environment Variables..
Edit Path..
Add New Path. ... .
Open Command Prompt and Check Versions..
After 7th step type conda install anaconda-navigator in cmd then press y..

Why does my command prompt not recognize conda?

To Solve 'conda' is not recognized as internal or external command Error First of all you need to check conda installation path. Just Open Anaconda Prompt and type this command: where conda Then Press windows key and type Open Advanced System Settings. Now, Click on Environment Variables. Edit Path variable.

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

Environment PATH for Conda is not set – This is the most common cause why this issue occurs. Keep in mind that the latest Anaconda builds will not automatically add Conda to your System variable paths since it can cause various issues with other software.

How do I enable conda in Python?

To activate your Conda environment, type source activate . Note that conda activate will not work on Discovery with this version. To install a specific package, type conda install -n [package] . To deactivate the current, active Conda environment, type conda deactivate .