How can I rename a conda environment?
First, remember to deactivate your current environment. You can do this with the commands:
deactivateon Windows or
source deactivateon macOS/Linux.
conda create --name new_name --clone old_nameconda remove --name old_name --all # or its alias: `conda env remove --name old_name`
Notice there are several drawbacks of this method:
- It redownloads packages (you can use
--offlineflag to disable it)
- Time consumed on copying environment's files
- Temporary double disk usage
There is an open issue requesting this feature.
conda create --name new_name --copy --clone old_name is better
conda create --name new_name --clone old_name which is without
--copybut encountered pip breaks...
the following url may helpInstalling tensorflow in cloned conda environment breaks conda environment it was cloned from