Skip to content Skip to sidebar Skip to footer

Anaconda (python) - Cmder Integration On Windows 10

I'm having some troubles in having Cmder working with Python through Anaconda on Windows 10 64bit. I got Anaconda working pretty well, tested to plot something with matplotlib and

Solution 1:

Assume your Anaconda3 installation path is C:\ProgramData\Anaconda3. On your Cmder settings StartupTasks, add a new predefined tasks

name:

whatever

and command:

cmd /k ""%ConEmuDir%\..\init.bat"" & C:\ProgramData\Anaconda3\Scripts\activate.bat C:\ProgramData\Anaconda3

To find the Anaconda path use the following command on Anaconda Prompt:

where anaconda

For example C:\ProgramData\Anaconda3\Scripts\anaconda.exe, the path will be C:\ProgramData\Anaconda3

Solution 2:

Another way of doing it for miniconda:

  1. Copy the location to the scripts folder; in my case it was:

    C:\Users\yourname here\miniconda3\Scripts

  2. In the start menu type edit and choose edit environment variables

  3. In the window add new variable name it Path and give it a value of the aforementioned path

  4. Restart Cmder and enjoy!

Solution 3:

It is a two step process:

  1. Add cmder installation directory to PATH environment variable. In my case the directory to be added is C:\ProgramData\Anaconda3\Scripts. Don't forget to add till Scripts. Restart cmder and see that conda should start working now. Refer Adding a directory to the PATH environment variable in Windows
  2. Do conda init cmd.exe. With this command some initializations will happen and your cmder prompt will start acting exactly like anaconda prompt. Restart cmder and now, you can use commands like conda activate <env_name> to activate environment of your choice.

Now, you can have Linux like terminal with all options of anaconda prompt in your Windows machine.

Post a Comment for "Anaconda (python) - Cmder Integration On Windows 10"