解决CommandNotFoundError: Your shell has not been properly configured to use ‘conda activate’

当使用conda时遇到报错

解决CommandNotFoundError: Your shell has not been properly configured to use ‘conda activate’_第1张图片

 

解决方法

第一种:

按照提示执行命令conda init bash,新开一个窗口,看下是否成功。

第二种:

若第一种不成功,可能是因为conda配置问题,按照以下步骤进行解决:

    执行source activate
    执行source deactivate
    执行conda activate env_name(你的环境名称),查看是否成功
    将命令加入到~/.bashrc文件中,每次自动执行

source activate
source deactivate    

你可能感兴趣的:(conda)