conda CommandNotFoundError: Your shell has not been properly configured to use ‘conda activate‘.

输入:

conda activate <Name>

报错:

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

 source activate # 激活 anaconda 环境
 conda deactivate # 退出 anaconda 环境

注:
退出 anaconda 环境时,不要使用:

 source deactivate 

会报错,错误原因

DeprecationWarning: 'source deactivate' is deprecated. Use 'conda deactivate'.

之后,激活需要使用的环境

conda activate <Name>

你可能感兴趣的:(Linux(Ubuntu),工具)