Can you rename an environment in conda? For example I have an environment called py34 and I would like to change the name to py3k, instead of having to create an environment again with this name.
Can you rename an environment in conda? For example I have an environment called py34 and I would like to change the name to py3k, instead of having to create an environment again with this name.
I used conda once and never tried to do something like that, looking at the documentation I don't see anything like editing the name of a virtual environment.
The closest thing might be to first clone the virtual environment and then delete the old one:
There might be another option (not recommended) which involves modifying some things in the
~/.conda
. First you would have to edit the fileenvironments.txt
that conda uses to keep track of the URLs of the virtual environments:Modify it using
nano
or your favorite editor to:Then it would only be to rename the folder of your virtual environment:
Finally, activate your virtual environment: