Mac安装Anaconda后将python默认打开设置为非Anaconda的版本

open .bash_profile //打开路径配置文件

将anaconda自动配置的部分注释掉

## >>> conda init >>>
## !! Contents within this block are managed by 'conda init' !!
#__conda_setup="$(CONDA_REPORT_ERRORS=false '/anaconda3/bin/conda' shell.bash hook 2> /#dev/null)"
#if [ $? -eq 0 ]; then
# \eval "$__conda_setup"
#else
# if [ -f "/anaconda3/etc/profile.d/conda.sh" ]; then
# . "/anaconda3/etc/profile.d/conda.sh"
# CONDA_CHANGEPS1=false conda activate base
# else
# \export PATH="/anaconda3/bin:$PATH"
# fi
#fi
#unset __conda_setup
## <<< conda init <<<

重启终端

猜你喜欢

转载自www.cnblogs.com/lyj1999/p/11075396.html
今日推荐