Rename a Conda Environment

Apr 5, 2022 min read

I inadvertently mistyped the name of a new miniforge environment and didn’t catch it until I went to activate it.

Not a huge deal as it’s a quick fix.

conda create -n new_name --clone old_name

conda remove -n old_name --all

One other detail – you can’t be in the environment, of course.