Terminal -bash alias error после установки anaconda на macOS - PullRequest
0 голосов
/ 06 октября 2019

У меня есть MacBook Pro с macOS Mojave 10.14.6 (18G95)
Я установил Anaconda с python в своей системе.
С тех пор, когда я открываю свой терминал, я получаю эти сообщения.

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$ 

Установка Anaconda как-то испортилась с моим .bash_profile.
Это содержимое моего .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 <<<

Что это значит? Будет ли это препятствовать моей системе в любом случае,
Как я могу удалить это?

1 Ответ

0 голосов
/ 06 октября 2019

Измените эту строку:

alias gcc='gcc-8'# added by Anaconda3 2019.07 installer

на

alias gcc='gcc-8'
# added by Anaconda3 2019.07 installer
...