自从安装了Anaconda之后,每一次打开mac teminal都会出现这个错误

Last login: Sat Dec 18 22:39:10 on ttys000

(eval):90: command not found: dirname

(eval):90: command not found: dirname

__add_sys_prefix_to_path:6: command not found: dirname

__add_sys_prefix_to_path:7: command not found: dirname

我用的是Mac pro+M1芯片. 之前看到网上有人提出可能是bash_profile或者zshrc文件的问题,我的终端用的是zshrc,这是我的zshrc文件,我试着在Python PATH那一行加了双引号、去掉双引号等一系列操作,都没用。

#python 3.9
export PATH=/Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9


# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/opt/anaconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
    eval "$__conda_setup"
else
    if [ -f "/opt/anaconda3/etc/profile.d/conda.sh" ]; then
        . "/opt/anaconda3/etc/profile.d/conda.sh"
    else
        export PATH="/opt/anaconda3/bin:$PATH"
    fi
fi
unset __conda_setup
# <<< conda initialize <<<

这个Python PATH的添加方法也是我在网上找的,莫非有问题?请帮我看看问题出在哪里,万分感谢!

你看看你的conda的配置文件里面的,有没有dirname相关的信息