如何在Cmder中激活Conda

3

我使用Cmder作为我的命令行工具,最近安装了Anaconda,想在Cmder会话中使用Conda而不是打开Anaconda提示符。 当然,Cmder无法识别conda命令。当我导航到安装Anaconda的路径并尝试运行_conda.exe acrivate base时,会出现以下错误:

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'.     

我该怎么办?

2个回答

0

-2

通过进一步搜索,我知道我只需要导航到conda.bat文件,然后尝试使用conda.bat activate激活它。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接