推荐清华源
https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/?C=N&O=D
选择版本
Miniconda3-py39_4.12.0-MacOSX-arm64.pkg
测试命令
conda help
配置加速
https://mirrors.tuna.tsinghua.edu.cn/help/anaconda/
没有 .condarc
文件则执行
conda config --set show_channel_urls yes
修改 .condarc
文件
channels:
- defaults
show_channel_urls: true
default_channels:
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2
custom_channels:
conda-forge: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
msys2: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
bioconda: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
menpo: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
pytorch: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
pytorch-lts: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
simpleitk: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
deepmodeling: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/
创建环境
conda create --name test python=3.9
激活test
conda activate test
退出test
conda deactivate
查看本机环境
conda env list
删除
conda remove --name test --all