# 查看conda版本
conda --version
conda -V
# 查看帮助
conda update --h
conda remove --h
# 环境命令
conda env -h
# 查看虚拟环境
conda info --envs
conda env list
# 创建环境
conda create --name pytorch python=3.7
conda create --name your_env_name python=3.5 numpy scipy
conda create --name new_env_name --clone old_env_name
conda remove --name your_env_name --all
# 分享环境
conda env export > environment.yml
conda env create -f environment.yml
# 进出虚拟环境
activate pytorch
deactivate
# 查看镜像
conda config --get channels
# 清华镜像
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/
https://www.jianshu.com/p/edaa744ea47d
https://blog.csdn.net/menc15/article/details/71477949/