在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