赞
踩
0.参考
参考链接https://blog.csdn.net/qq_16555103/article/details/121663004
1.下载miniforge3
下载链接https://github.com/conda-forge/miniforge/#download
2.安装 miniforge
- # cd 到文件保存路径
- bash Miniforge3-MacOSX-arm64.sh
3.添加环境变量(可选)
苹果终端默认使用zsh,如果已经换成bash则无需操作
- vim ~/.bash_profile
- # 打开后出现如下所示文本,全部复制到.zshrc
- # >>> conda initialize >>>
- # !! Contents within this block are managed by 'conda init' !!
- __conda_setup="$('/opt/miniforge3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
- if [ $? -eq 0 ]; then
- eval "$__conda_setup"
- else
- if [ -f "/opt/miniforge3/etc/profile.d/conda.sh" ]; then
- . "/opt/miniforge3/etc/profile.d/conda.sh"
- else
- export PATH="/opt/miniforge3/bin:$PATH"
- fi
- fi
- unset __conda_setup
- # <<< conda initialize <<<
- vim ~/.zshrc
- # 激活.zshrc
- source ~/.zshrc
完成
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。