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 <<<

重启终端


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM