Create Virtual Environment
conda create -n your_env_name python=x.x
List all of env
conda env list
conda info -e
Activate env
activate your_env_name
Update Conda
conda update conda
Close current env (Return default env)
deactivate env_name
或者`activate root`切回root环境
Linux下:source deactivate
Delete env
conda remove -n your_env_name --all
Change default mirror origin
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
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/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes
Set default mirror origin
conda config --remove-key channels``