赞
踩
大背景不介绍了,哎!直接上教程!
conda install anaconda-clean
anaconda-clean --yes
rm -rf ~/anaconda3
查看系统架构,确定安装包名称:
uname -a # 查看是x86还是m系列(m1m2m3系列芯片)下载对应.sh文件
打开github,下载安装包:GitHub - conda-forge/miniforge: A conda-forge distribution.
OS | Architecture | Download |
---|---|---|
Linux | x86_64 (amd64) | Miniforge3-Linux-x86_64 |
Linux | aarch64 (arm64) (**) | Miniforge3-Linux-aarch64 |
Linux | ppc64le (POWER8/9) | Miniforge3-Linux-ppc64le |
OS X | x86_64 | Miniforge3-MacOSX-x86_64 |
OS X | arm64 (Apple Silicon) (***) | Miniforge3-MacOSX-arm64 |
Windows | x86_64 | Miniforge3-Windows-x86_64 |
以x86 Mac为例,执行安装,一路Enter
bash ./Miniforge3-MacOSX-x86_64.sh
~/miniforge3/bin/mamba init # PATH初始化,但是不一定work,可以参考下面方案
Linux和MacOSX用户分别在~/.bashrc和~/.bash_profile里添加如下内容
# >>> 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_setupif [ -f "/opt/miniforge3/etc/profile.d/mamba.sh" ]; then
. "/opt/miniforge3/etc/profile.d/mamba.sh"
fi
# <<< conda initialize <<<
mamba --version # 打开新Terminal,执行命令,验证安装是否成功
mv anaconda3/envs/* miniforge3/envs # 移动Anaconda envs到Miniforge envs,完全兼容
mamba env list
mamba activate ENV_NAME
大功告成!
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。