This shortcut you can keep in start menu or pinned in taskbar. Now myenv_prompt will act as shortcut to start cmd with myenv as the default environment for python. fill the Target form something like %windir%\system32\cmd.exe "/K" C:\Users\xxx\AppData\Local\Continuum\Miniconda3\Scripts\activate.bat C:\Users\xxx\AppData\Local\Continuum\Miniconda3\envs\myenv \acitvate.bat with environment 3).\Miniconda3\Ĭhange 3rd part to path of the environment (say myenv) you want as default i.e. There are three parts of this command 1)start. The Target form of Properties window should already be filled with text, something like %windir%\system32\cmd.exe "/K" C:\Users\xxx\AppData\Local\Continuum\Miniconda3\Scripts\activate.bat C:\Users\xxx\AppData\Local\Continuum\Miniconda3\ Right click myenv_prompt and select properties in the context menu.
Key: HKCU\SOFTWARE\Microsoft\Command Processorįor windows Anaconda comes with Anaconda Prompt which is a shortcut to cmd and can be used run conda commands without adding anaconda in PATH variable.įind the location of it, copy and rename the copy (say myenv_prompt).
With this method, you can preserve the versions of Python you use in your environments. In this case, you should activate the desired default environment in the shell initialization file (e.g. Some people have multiple Conda environments with different versions of Python for compatibility reasons.