Anaconda (python) - Cmder Integration On Windows 10
Solution 1:
Assume your Anaconda3 installation path is C:\ProgramData\Anaconda3
. On your Cmder settings Startup
→ Tasks
, 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:
Copy the location to the scripts folder; in my case it was:
C:\Users\yourname here\miniconda3\Scripts
In the start menu type edit and choose edit environment variables
In the window add new variable name it Path and give it a value of the aforementioned path
Restart Cmder and enjoy!
Solution 3:
It is a two step process:
- 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 tillScripts
. Restart cmder and see that conda should start working now. Refer Adding a directory to the PATH environment variable in Windows - 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 likeconda 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"