Discussion:
[conda] I have deleted my conda environment by mistake, how do i revert it back
rajiv pai
2018-09-18 05:11:04 UTC
Permalink
I have deleted the conda environment accidentally by giving the following
command

conda remove --name myenv --all

is there anyway that i could revert it back or is there any other method
in recreating the same environment files without disrupting the
existing project
--
You received this message because you are subscribed to the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda+***@continuum.io.
To post to this group, send email to ***@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/b45614f2-2aaa-44e7-bf93-8240083905e3%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Ariel Balter
2018-09-18 06:34:52 UTC
Permalink
If you did something like `rm -rf conda` then you are out of luck. Your
conda directory is gone.

The wonderful thing is that conda is completely self-contained, so you
didn't mess anything else up either! Compare this to deleting `/usr/bin` or
`/usr/share/bin`.

You will simply have to create a new conda installation and reinstall your
packages. Just try to remember as many as you can up front. Then run your
project and as you get errors for missing libraries, install them too.

You could also grep your code for things like `import *` (Python, JS) or
`library*` (R), etc. and use what you find as a guide for which libraries
you need to reinstall.

FWIW, I like to create environments specific to projects and only install
what I actually need for that project. Then I also record what packages
I've installed for that project. You can also periodically run `conda env
export -f some_proj_conda.yml`. You can later restore the environment from
the export file.
--
You received this message because you are subscribed to the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda+***@continuum.io.
To post to this group, send email to ***@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/98713d34-61ad-4d13-9bfc-2eec79d2ad25%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Chris Withers
2018-09-18 07:22:41 UTC
Permalink
Post by Ariel Balter
FWIW, I like to create environments specific to projects and only
install what I actually need for that project. Then I also record what
packages I've installed for that project. You can also periodically
run `conda env export -f some_proj_conda.yml`. You can later restore
the environment from the export file.
...I wrote a tool to help in this area:
https://picky-conda.readthedocs.io/en/latest/

cheers,

Chris
--
You received this message because you are subscribed to the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda+***@continuum.io.
To post to this group, send email to ***@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/f3f9b937-6a69-1b9f-aec8-2d724c00a126%40withers.org.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Loading...