Opened 6 months ago

Closed 6 months ago

#3395 closed help (answered)

renaming conda environment

Reported by: NoelClancy Owned by: jules_support
Component: Land Surface Modelling Keywords: conda, environment, renaming
Cc: Platform: JASMIN
UM Version:

Description

Hi Patrick,
thanks for your help, the ticket with Azin was enough. Just one final question. I named the environment pmg_env_short.

Is there a command to rename an environment?
Noel

Change History (9)

comment:1 Changed 6 months ago by pmcguire

Hi Noel:
Here's a stackexchange answer that I found by googling:
https://stackoverflow.com/questions/42231764/how-can-i-rename-a-conda-environment
Patrick

comment:2 Changed 6 months ago by pmcguire

does that help?
Patrick

comment:3 Changed 6 months ago by pmcguire

yes, I will test it.

but it looks easy.
Noel

comment:4 Changed 6 months ago by pmcguire

which answer are you looking at?
Patrick

comment:5 Changed 6 months ago by pmcguire

I'm looking at the green ticks as the best answer.
Noel

comment:6 Changed 6 months ago by pmcguire

How did it turn out?
Patrick

comment:7 Changed 6 months ago by pmcguire

conda env create -n plot -f /home/users/valeriu/patrick_env_short.yml
conda activate plot
I tested this and my plots work.

conda remove —name pmg_env_short —all
tested my plots again, all working.
conda env list
the old one is gone.

thanks for the help, speak soon.
Noel

comment:8 Changed 6 months ago by pmcguire

I am glad it's working.
Patrick

comment:9 Changed 6 months ago by pmcguire

  • Resolution set to answered
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.