Я установил Anaconda, используя CLI.
Он изменил мой ~ / .bash_profile следующим образом:
# >>> conda init >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$(CONDA_REPORT_ERRORS=false '/opt/anaconda3/bin/conda' shell.bash 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" # commented out by conda initialize
CONDA_CHANGEPS1=false conda activate base
else
\export PATH="/opt/anaconda3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda init <<<
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/Users/Solal/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/Users/Solal/anaconda3/etc/profile.d/conda.sh" ]; then
. "/Users/Solal/anaconda3/etc/profile.d/conda.sh"
else
export PATH="/Users/Solal/anaconda3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<
И установка создала файл .bash_profile-anaconda3.bak
следующим образом: export PATH=/usr/local/bin:/usr/local/sbin:${PATH}
Я не Не понимаю, когда я пытаюсь выполнить команду python, она все равно использует MacOS по умолчанию python версия
, которую python возвращает: /usr/bin/python
Как я могу сделать мою анаконду python по умолчанию?
Спасибо за помощь