How to bring back an environment from Conda which had been removed earlier?

In Windows Server 2012 R2 We had 3 environments in Conda earlier-

1. <base> 2. <py_27> 3. <py_3> 

Now we have-

1. <base> 2. <py_36> 

We need to bring back py_27. If possible, How do I do it ?

Add Comment
1 Answer(s)

Just create a new environment with the version of python that you need, something like:

conda create --name NameYourEnv python=2.7

And you will have a clean python=2.7 environment.

Furthermore if you need additional modules just add them in the command:

conda create --name NameYourEnv python=2.7 tensorflow ipykernel nb_conda

NB: You can either call a module just by his name or specify its version. Conda will manage all the dependences and compatibility issues.

NBB: Mind that some packages will be available in other channels, like conda-forge, in that case you need to specify the channel adding -c conda-forge to the command.

Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.