1.创建环境
conda create -n test python=3.8 # test为环境名,3.5为python的版本号,-n 是name名字
2.删除环境
conda remove -n test --all
3.环境重命名
conda create -n NewName --clone OldName #把环境 OldName 重命名成 NewName
conda remove -n OldName --all
conda 其实没有重命名指令,实现重命名是通过 clone 完成的:
- 先 clone 一份NewName的环境。
- 删除OldName的环境。
4.查看环境名
conda info -e