我有一台装有 macOS Mojave 10.14.6 (18G95) 的 MacBook Pro
我在我的系统上安装了带有 python 的 Anaconda。
从那时起,每当我打开终端时,我都会收到这些消息
Last login: Sat Oct 5 22:53:55 on console
You have new mail.
-bash: alias: added: not found
-bash: alias: by: not found
-bash: alias: Anaconda3: not found
-bash: alias: 2019.07: not found
-bash: alias: installer: not found
(base) Ayushs-MacBook-Pro:~ Ayush$
这是什么意思?无论如何它会妨碍我的系统,我该
如何删除它?
这是我的 bash_profile 的内容
# Homebrew
export PATH=/usr/local/bin:$PATH
export PATH=/usr/local/sbin:$PATH
export GOOGLE_APPLICATION_CREDENTIALS=/Users/Ayush/Downloads/ayush-profectus-b02fa250957f.json
# The next line updates PATH for the Google Cloud SDK.
if [ -f '/Users/Ayush/Downloads/google-cloud-sdk/path.bash.inc' ]; then source '/Users/Ayush/Downloads/google-cloud-sdk/path.bash.inc'; fi
# The next line enables shell command completion for gcloud.
if [ -f '/Users/Ayush/Downloads/google-cloud-sdk/completion.bash.inc' ]; then source '/Users/Ayush/Downloads/google-cloud-sdk/completion.bash.inc'; fi
# for complier
export PATH=/usr/local/Cellar/gcc/8.2.0/bin:$PATH
alias gcc='gcc-8'# added by Anaconda3 2019.07 installer
# >>> conda init >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$(CONDA_REPORT_ERRORS=false '/Users/Ayush/anaconda3/bin/conda' shell.bash hook 2> /dev/null)"
if [ $? -eq 0 ]; then
\eval "$__conda_setup"
else
if [ -f "/Users/Ayush/anaconda3/etc/profile.d/conda.sh" ]; then
. "/Users/Ayush/anaconda3/etc/profile.d/conda.sh"
CONDA_CHANGEPS1=false conda activate base
else
\export PATH="/Users/Ayush/anaconda3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda init <<<
这条线是罪魁祸首:
您可以通过将行粘贴到新的外壳中来确认它。它会产生完全相同的错误。很可能它应该在 . 之前包含一个空格字符
#
。像这样: