CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'. If your s

CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'. If your s_第1张图片

你输入 conda 命令,他会提示你这个,由于在~/.bashrc里面激活conda命令的方式不对。

正确的做法是将上面的:

. /home/DATA/liutian/anaconda3/etc/profile.d/conda.sh

复制到你的~/.bashrc  ,并且将你的export PATH='....'注释掉,看下面图片的最后三行

CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'. If your s_第2张图片

你可能会觉得,这个教程一点用都没有,我还是返回这个错误,根本不能启动。

真想打个差评

那么一定要输入

source ~/.bashrc让你刚才更改的文件起作用。

考虑到可能大家对ubuntu不太熟悉,于是我又加了这个。

如果还不起作用,那就是别的原因了。欢迎评论。

你可能感兴趣的:(anaconda)