是否有必要使用anaconda附加到〜/ .bash_profile的bash代码?

在Mac OS X上安装anaconda之后,我在〜/ .bash_profile中添加了以下内容。我想知道File "server.py",line 19,in <module> fms = fmrest.Server('https://filemaker.mann.com',AttributeError: module 'fmrest' has no attribute 'Server' 的目的是什么(输出如下所示)。只需将conda shell.bash hook添加到$ PATH就足够了。而不是使用附加到/Users/xxx/opt/anaconda3/bin/的bash代码?

~/.bash_profile
__conda_setup="$(CONDA_REPORT_ERRORS=false '/Users/xxx/opt/anaconda3/bin/conda' shell.bash hook 2> /dev/null)"
if [ $? -eq 0 ]; then
    \eval "$__conda_setup"
else
    if [ -f "/Users/xxx/opt/anaconda3/etc/profile.d/conda.sh" ]; then
        . "/Users/xxx/opt/anaconda3/etc/profile.d/conda.sh"
        CONDA_CHANGEPS1=false conda activate base
    else
        \export PATH="/Users/xxx/opt/anaconda3/bin:$PATH"
    fi
fi
unset __conda_setup
Lephia 回答:是否有必要使用anaconda附加到〜/ .bash_profile的bash代码?

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3149886.html

大家都在问