在 /opt/anaconda3 中安装 Anaconda 后,我通过添加 PATH 变量为我的用户修改了 ~/.bashrc
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=
# User specific aliases and functions
export PATH="/opt/anaconda3/bin:$PATH"
但是当我打开终端并输入
conda list
我明白了
bash: conda: command not found
可能是什么问题呢?
答案1
事实证明,我只需要重新启动终端,或者输入source ~/.bashrc
.