mac安装miniconda

1 intel芯片

mkdir -p ~/miniconda3
curl https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -o ~/miniconda3/miniconda.sh
bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3
rm -rf ~/miniconda3/miniconda.sh

初始化shell环境

~/miniconda3/bin/conda init bash
~/miniconda3/bin/conda init zsh

2 m1芯片

mkdir -p ~/miniconda3
curl https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-arm64.sh -o ~/miniconda3/miniconda.sh
bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3
rm -rf ~/miniconda3/miniconda.sh

初始化shell环境

~/miniconda3/bin/conda init bash
~/miniconda3/bin/conda init zsh

官方安装参考文档:

https://docs.conda.io/projects/miniconda/en/latest/

你可能感兴趣的:(macos,python,开发语言)