$ conda {command} --help will help you.

添加环境变量

macOS用户可能需要先init (conda init只能初始化bash, macOS默认使用zsh)

$ source ~/anaconda3/bin/activate
$ conda init zsh

打开终端时默认不激活base环境

$ conda config --set auto_activate_base false

源管理

设置搜索时显示通道地址

conda config --set show_channel_urls yes

设置通道

conda config --add channels <http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/>

conda config --add channels <http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/>

conda config --add channels <http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/>

查看当前conda配置

conda config --show channels

环境管理

创建指定python版本,指定包的虚拟环境

conda create -n envname python=3.6 (scipy=0.15.0)