Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to activate Conda in Cmder

I use Cmder as my command line and I've just installed Anaconda and I want to work with Conda in a Cmder session instead of opening the anaconda prompt. It doesn't understand the conda command, Of course and when I navigate to the path I installed Anaconda in and try to run _conda.exe acrivate base gives me this:

CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.     
If using 'conda activate' from a batch script, change your                                     
invocation to 'CALL conda.bat activate'.                                                       
                                                                                           
To initialize your shell, run                                                                  
                                                                                           
$ conda init <SHELL_NAME>                                                                  
                                                                                           
Currently supported shells are:                                                                
  - bash                                                                                       
  - cmd.exe                                                                                    
  - fish                                                                                       
  - tcsh                                                                                       
  - xonsh                                                                                      
  - zsh                                                                                        
  - powershell                                                                                 
                                                                                           
See 'conda init --help' for more information and options.                                      
                                                                                           
IMPORTANT: You may need to close and restart your shell after running 'conda init'.     

What should I do?

like image 365
Mohamed Yahya Avatar asked Dec 07 '25 02:12

Mohamed Yahya


1 Answers

You should be fine just running conda init cmd.exe.

After that, restart cmder and you should be able to access conda in the default cmder shell.

More details in this: https://copyprogramming.com/howto/anaconda-python-cmder-integration-on-windows-10-2

like image 112
avolkmann Avatar answered Dec 08 '25 15:12

avolkmann



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!