查看环境
conda info --envs

激活环境
conda activate xiong

创建环境
conda create -n xiong python=X.X(2.7/3.6)

#conda create --prefix /Users/xinbao/desktop/code/envs/miao -y cudatoolkit=10.0 cudnn=7.6.0 python=3.7 ipykernel

conda create --prefix /Users/xinbao/desktop/code/envs/miao -y python=3.7 ipykernel

(base) xinbao@xinbaodembp code %
conda activate ./envs/miao

关闭虚拟环境
source deactivate xin

删除虚拟环境需要先deactivate
conda deactivate
conda remove -n xin -all
或者直接原名字重新安装
conda create -n xin python==3.8 然后会提示已存在环境是否要删掉
在这里插入图片描述

Logo

更多推荐