I made Conda remove itself

已查看 1 次
跳至第一个未读帖子

pfigliozzi

未读,
2016年9月22日 19:33:442016/9/22
收件人 conda - Public

I was messing around with my virtual environments in conda and I managed to make conda remove itself. I was testing a beta package in a virtual environment that I created. After I was done testing I went back to my root environment in conda. However in my root environment python kept crashing when I was running scripts that should work. I looked at my packages in the root environment and noticed that conda, conda-env, python, and scipy where updated in my root environment. I discovered the "revisions" feature in conda and saw the packages that I installed that day using:

conda --revisions


yields the result (the relevant revisions are 29 and 30):







 

So using:

conda install --revision=29


It removed conda 4.2.7 but it did not replace it with conda 4.0.5. Now I cannot call conda from the command prompt anymore. I was wondering if there is a way for me to put conda back on my computer in my Anaconda distribution. Does anyone know if there is a way to do that?

If not I am quite prepared, before I did any messing around in conda I created a yaml file of my root environment. Worst case I can uninstall anaconda and reinstall anaconda or miniconda and recreate my environment although I am a little worried if I would lose any settings doing this. Also, I was having trouble cloning my root environment from this yaml file, conda kept giving me errors like 'could not parse "name=root"' or an error related to channels (I do have some packages that I got from specific channels). Let me know what you suggest I do.

Thomas Caswell

未读,
2016年9月24日 16:51:202016/9/24
收件人 pfigliozzi、conda - Public
Patrick,

Probably just re-install miniconda

I think you have to do

```
conda env create -f env.yaml
```

to get it to work.

Tom

--
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+un...@continuum.io.
To post to this group, send email to co...@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/df276786-b1ac-4bcd-9664-8cf14cba013a%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Rutger Kassies

未读,
2017年11月22日 09:40:092017/11/22
收件人 conda - Public、phoen...@gmail.com
Hey,

I just did the same thing. Huge gotcha that doing a revision in the root environment can remove conda itself! My solution is to download the version of Conda you need from anaconda.org, or alternatively look in your \pkgs\ directory if its still there. You can then open the tarball and simply drag all folders to you Miniconda/Anaconda directory. For me that seems to work alright, its risky of course.


Regards,
Rutger

Ian Stokes Rees

未读,
2017年11月27日 13:55:072017/11/27
收件人 co...@continuum.io
This probably deserves to be reported as a bug to the issue tracker:

https://github.com/conda/conda/issues
--
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+un...@continuum.io.
To post to this group, send email to co...@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.

--
Ian Stokes-Rees, PhD
Computational Scientist
617.942.0218
.

Rutger Kassies

未读,
2017年11月28日 07:26:102017/11/28
收件人 conda - Public
Hey,

There are already several, see for example:

and




Regards,
Rutger
回复全部
回复作者
转发
0 个新帖子