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

Total
0
Shares

You get the Python Anaconda error, ‘conda’ is not recognized as an internal or external command, operable program or batch file, when the path variable in environment is not set correctly. Although Anaconda prompt users to select the option to add path during installation but if you missed that even then you can manually set the path.

According to Release notes of Anaconda 4.4

On Windows, the PATH environment variable is no longer changed by default, as this can cause trouble with other software. Instead, use Anaconda Navigator or the Anaconda Prompt in the Start Menu under “Anaconda” to use Anaconda software. If a user does choose to change the PATH variable, Anaconda is no longer appended to the PATH in system mode, and is now always added to the front of PATH in either system mode or user mode.

To prevent this error, you need to install conda with basic precautions. According to official documentation

Note: To prevent permission errors, do not launch the installer from the Favorites folder.

Note: If you encounter issues during installation, temporarily disable your anti-virus software during install, then re-enable it after the installation concludes. If you installed for all users, uninstall Anaconda and re-install it for your user only and try again.

Note: Install Anaconda to a directory path that does not contain spaces or unicode characters.

Note: Do not install as Administrator unless admin privileges are required.

Note: If you are behind a company proxy, you may need to do some additional set up. See how to set up your proxy.

Check the path checkbox to automatically add path variable in your windows environment.

anaconda path checkbox

Although, Anaconda do not recommend selecting this checkbox because it can cause problems and may require you to uninstall and reinstall it.

Conda recommends that you work directly on the Anaconda Prompt.

Add Anaconda path to environment manually

Open Anaconda Prompt

Open Anaconda Prompt

Check Conda Installed Location using where conda

Check conda install location using where conda

Open advanced system settings

open advanced system settings

Click on Environment Variables button

System properties window

Edit Path by double clicking on path variable

Path variable

Add new paths that you got from where python and where conda commands. For example

 C:\Users\RajaRama\Anaconda3\Scripts

 C:\Users\RajaRama\Anaconda3

 C:\Users\RajaRama\Anaconda3\Library\bin
Add paths in edit environment variable window

Open command prompt and check if you are getting error again.

check conda version

After following all these steps, you won’t get ‘conda’ is not recognized as an internal or external command, operable program or batch file.

    Tweet this to help others

Sign Up for Our Newsletters

Get only the best articles delivered to your mail

You May Also Like

How to rename columns in Pandas Python?

Table of Contents Hide 1. Assigning new columns to attribute .columns2. Making columns copy, change required one and reassign3. Using rename() function4. Using set_axis() function5. Using lambda functionLive DemoRelated Posts:…
View Post