欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Anaconda Can't activate

程序员文章站 2022-03-03 19:49:43
...

When I execute ‘aconda activate xx(env name)’ would encounter these problem:

CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
To initialize your shell, run                                                                                                
                                                                                                                             
    $ conda init <SHELL_NAME>                                                                                                
                                                                                                                             
Currently supported shells are:                                                                                              
  - bash                                                                                                                     
  - fish                                                                                                                     
  - tcsh                                                                                                                     
  - xonsh                                                                                                                    
  - zsh                                                                                                                      
  - powershell                                                                                                               
                                                                                                                             
See 'conda init --help' for more information and options.

I slave the problem by using the follow commands

# **环境
source activate
# 退出环境
source deactivate
相关标签: python linux