MacOSM1 配置Miniconda环境,并设置自启动
设置环境变量
cd
vim .zshrc
输入一下内容
# 配置Conda
CONDA_HOME=/Users/hanliqiang/miniconda3
PATH=$CONDA_HOME/bin:$PATH
生效配置
source .zshrc
设置自启动
conda init zsh
.zshrc 文件中将会出现以下内容
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/Users/<user>/miniconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/Users/<user>/miniconda3/etc/profile.d/conda.sh" ]; then
. "/Users/<user>/miniconda3/etc/profile.d/conda.sh"
else
export PATH="/Users/<user>/miniconda3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<
参考
Mac安装Conda https://www.cnblogs.com/qwangg/p/18183128
原文地址:https://blog.csdn.net/qq_44776065/article/details/140592279
免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!