python 如何在Cmder中激活Conda

mwyxok5s  于 4个月前  发布在  Python
关注(0)|答案(1)|浏览(81)

我使用Cmder作为我的命令行,我刚刚安装了Anaconda,我想在Cmder会话中与Conda一起工作,而不是打开anaconda提示符。它不理解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'.

字符串
我该怎么办?

4dbbbstv

4dbbbstv1#

你只需要运行conda init cmd.exe就可以了。
之后,重新启动cmder,您应该能够在默认的cmder shell中访问conda
更多详情:https://copyprogramming.com/howto/anaconda-python-cmder-integration-on-windows-10-2

相关问题