通过克隆重命名。
这是Anaconda官方推荐的方法,因为conda没有直接的rename命令。
- 克隆旧环境为新名字
bash
conda create --name 新环境名 --clone 旧环境名
- 删除旧环境
bash
conda remove --name 旧环境名 --all