- Installing on WindowsВ¶
- Installing in silent modeВ¶
- Updating condaВ¶
- Uninstalling condaВ¶
- Installing on WindowsВ¶
- Installing in silent modeВ¶
- Updating condaВ¶
- Uninstalling condaВ¶
- Conda command is not recognized on Windows 10
- 11 Answers 11
- Expose conda in Every Shell
- Extended Reading: conda init from Conda 4.6
Installing on WindowsВ¶
Download the installer:
Double-click the .exe file.
Follow the instructions on the screen.
If you are unsure about any setting, accept the defaults. You can change them later.
When installation is finished, from the Start menu, open the Anaconda Prompt.
Test your installation. In your terminal window or Anaconda Prompt, run the command conda list . A list of installed packages appears if it has been installed correctly.
Installing in silent modeВ¶
The following instructions are for Miniconda. For Anaconda, substitute Anaconda for Miniconda in all of the commands.
To run the the Windows installer for Miniconda in silent mode , use the /S argument. The following optional arguments are supported:
/InstallationType=[JustMe|AllUsers] —Default is JustMe .
/AddToPath=[0|1] —Default is 0
/RegisterPython=[0|1] —Make this the system’s default Python. 0 indicates JustMe , which is the default. 1 indicates AllUsers .
/S —Install in silent mode.
/D= path> —Destination installation path. Must be the last argument. Do not wrap in quotation marks. Required if you use /S .
All arguments are case-sensitive.
EXAMPLE: The following command installs Miniconda for the current user without registering Python as the system’s default:
Updating condaВ¶
Open your Anaconda Prompt from the start menu.
Navigate to the anaconda directory.
Run conda update conda .
Uninstalling condaВ¶
In the Windows Control Panel, click Add or Remove Program.
Select Python X.X (Miniconda), where X.X is your version of Python.
Click Remove Program.
Removing a program is different in Windows 10.
© Copyright 2017, Continuum Analytics Revision b6d32c8d .
Installing on WindowsВ¶
Download the installer:
Double-click the .exe file.
Follow the instructions on the screen.
If you are unsure about any setting, accept the defaults. You can change them later.
When installation is finished, from the Start menu, open the Anaconda Prompt.
Test your installation. In your terminal window or Anaconda Prompt, run the command conda list . A list of installed packages appears if it has been installed correctly.
Installing in silent modeВ¶
The following instructions are for Miniconda. For Anaconda, substitute Anaconda for Miniconda in all of the commands.
To run the the Windows installer for Miniconda in silent mode , use the /S argument. The following optional arguments are supported:
/InstallationType=[JustMe|AllUsers] —Default is JustMe .
/AddToPath=[0|1] —Default is 0
/RegisterPython=[0|1] —Make this the system’s default Python. 0 indicates JustMe , which is the default. 1 indicates AllUsers .
/S —Install in silent mode.
/D= path> —Destination installation path. Must be the last argument. Do not wrap in quotation marks. Required if you use /S .
All arguments are case-sensitive.
EXAMPLE: The following command installs Miniconda for the current user without registering Python as the system’s default:
Updating condaВ¶
Open your Anaconda Prompt from the start menu.
Navigate to the anaconda directory.
Run conda update conda .
Uninstalling condaВ¶
In the Windows Control Panel, click Add or Remove Program.
Select Python X.X (Miniconda), where X.X is your version of Python.
Click Remove Program.
Removing a program is different in Windows 10.
© Copyright 2017, Continuum Analytics Revision b6d32c8d .
Conda command is not recognized on Windows 10
I installed Anaconda 4.4.0 (Python 3.6 version) on Windows 10 by following the instructions here: https://www.continuum.io/downloads. However, when I open the Command prompt window and try to write
‘conda’ command is not recognized.
but it didn’t help. I also read that I might need to edit my .bashrc file, but I don’t know how to access this file, and how I should edit it.
11 Answers 11
In Windows, you will have to set the path to the location where you installed Anaconda3 to.
For me, I installed anaconda3 into C:\Anaconda3 . Therefore you need to add C:\Anaconda3 as well as C:\Anaconda3\Scripts\ to your path variable, e.g. set PATH=%PATH%;C:\Anaconda3;C:\Anaconda3\Scripts\ .
You can do this via powershell (see above, https://msdn.microsoft.com/en-us/library/windows/desktop/bb776899(v=vs.85).aspx ), or hit the windows key → enter environment → choose from settings → edit environment variables for your account → select Path variable → Edit → New .
To test it, open a new dos shell, and you should be able to use conda commands now. E.g., try conda —version .
Things have been changed after conda 4.6.
Programs «Anaconda Prompt» and «Anaconda Powershell» expose the command conda for you automatically. Find them in your startup menu.
If you don’t wanna use the prompts above and try to make conda available in a normal cmd.exe and a Powershell. Read the following content.
Expose conda in Every Shell
The purpose of the following content is to make command conda available both in cmd.exe and 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 mean condabin , not Scripts ) into the environment variable PATH (the user one). If Anaconda is installed for all users on your machine, add C:\ProgramData\Anaconda3\condabin into PATH .
Open a new Powershell, run the following command once to initialize conda .
These steps make sure the conda command is exposed into your cmd.exe and Powershell.
Extended Reading: conda init from Conda 4.6
Caveat: Add the new \path\to\anaconda3\condabin but not \path\to\anaconda3\Scripts into your PATH . This is a big change introduced in conda 4.6.
Conda 4.6 adds extensive initialization support so that more shells than ever before can use the new conda activate command. For more information, read the output from conda init –help We’re especially excited about this new way of working, because removing the need to modify PATH makes Conda much less disruptive to other software on your system.
In the old days, \path\to\anaconda3\Scripts is the one to be put into your PATH . It exposes command conda and the default Python from «base» environment at the same time.
After conda 4.6, conda related commands are separated into condabin . This makes it possible to expose ONLY command conda without activating the Python from «base» environment.