Conda command is not recognized on Windows 10
Conda command is not recognized on Windows 10 (Overflow, 2017)
![]()
Metadata
- Author: Stack Overflow
- Full Title: Conda command is not recognized on Windows 10
- Category: #articles
- Document Tags: conda python
- Summary: To use the conda command in cmd.exe or Powershell on Windows 10, you need to add the appropriate path to your system's environment variables. If Anaconda is installed for your user only, add
%USERPROFILE%\Anaconda3\condabinto your PATH, orC:\ProgramData\Anaconda3\condabinif it's for all users. After updating the PATH, runconda initin Powershell to ensure the command works in both shells. - URL: https://stackoverflow.com/questions/44597662/conda-command-is-not-recognized-on-windows-10/58211115#58211115
Highlights
- Conda command is not recognized on Windows 10 (View Highlight)
- Things have been changed after conda 4.6.
Programs "Anaconda Prompt" and "Anaconda Powershell" expose the command
condafor you automatically. Find them in your startup menu. If you don't wanna use the prompts above and try to makecondaavailable in a standardcmd.exeor a standard Powershell. Read the following content.
Exposecondain Every Shell The purpose of the following content is to make commandcondaavailable both incmd.exeand Powershell on Windows. If you have already checked "Add Anaconda to my PATH environment variable" during Anaconda installation, skip step 1.
- If Anaconda is installed for the current use only, add
%USERPROFILE%\Anaconda3\condabin(I meancondabin, notScripts) into the environment variablePATH(the user one). If Anaconda is installed for all users on your machine, addC:\ProgramData\Anaconda3\condabinintoPATH. How do I set system environment variables on Windows? - Open a new Powershell, run the following command once to initialize
conda. conda init These steps make sure thecondacommand is exposed into yourcmd.exeand Powershell.
Extended Reading:conda initfrom Conda 4.6 Caveat: Add the new\path\to\anaconda3\condabinbut not\path\to\anaconda3\Scriptsinto yourPATH. This is a big change introduced inconda4.6. Activation script initialization fronconda4.6 release logConda 4.6 adds extensive initialization support so that more shells than ever before can use the new
conda activatecommand. For more information, read the output fromconda init –helpWe’re especially excited about this new way of working, because removing the need to modifyPATHmakes Conda much less disruptive to other software on your system. In the old days,\path\to\anaconda3\Scriptsis the one to be put into yourPATH. It exposes commandcondaand the default Python from "base" environment at the same time. Afterconda4.6,condarelated commands are separated intocondabin. This makes it possible to expose ONLY commandcondawithout activating the Python from "base" environment. References • Conda 4.6 Release • How do I prevent Conda from activating the base environment? (View Highlight) - If Anaconda is installed for the current use only, add