创建虚拟环境
conda create -n pytorch python=3.9
查看虚拟环境
conda info --envs
激活虚拟环境
activate pytorch
查看安装的包
conda list
删除虚拟环境
conda remove -n pytorch --all
重命名虚拟环境
conda create -n tf2 --clone pytorch
国内镜像源
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 --set show_channel_urls yes
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/