从Anaconda缩小为Miniconda [英] Downsizing from Anaconda to Miniconda

查看:102
本文介绍了从Anaconda缩小为Miniconda的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我不知道Anaconda和Miniconda之间的区别之前,我已经在系统上安装了Anaconda.我希望缩小到Miniconda,因为我不想让Anaconda膨胀,但是我已经设置了一些环境.

到目前为止,我想到迁移的唯一方法是完全摆脱所有问题,安装Miniconda,然后手动重新创建我的环境,但这似乎很艰巨.有解决这个问题的聪明方法吗?

解决方案

我同意@darthbith:将env导出到YAML文件(conda env export),然后在安装Miniconda(conda env create)后重新创建它们.

虽然有一些用于打包和移动环境的实验工具(例如,因此您不必重新下载软件包),但它们只能在单个环境下使用.因此,我看不到这种方法如何避免为许多共享文件制作多个副本.相反,如果让Conda处理环境(重新)创建,它将利用硬链接来最大程度地减少磁盘使用,这似乎是您的目标之一.

I had installed Anaconda on my system before I knew the difference between Anaconda and Miniconda. I would like to downsize to Miniconda since I don't want the bloat of Anaconda, but I already have a handful of environments set up.

So far the only way I can think of migrating is to completely get rid of everything right now, install Miniconda, and then recreate my environments by hand, but that seems quite arduous. Is there a smarter way of going about this?

解决方案

I agree with @darthbith: Export the envs to YAML files (conda env export) then recreate them once you have Miniconda installed (conda env create).

While there are some experimental tools for packaging and moving envs (i.e., so you avoid having to redownload packages), they only work on a single env basis. So, I can't see how going this route one could avoid making multiple copies of many of the shared files. Instead, if you let Conda handle the environment (re)creation, it will leverage hardlinks to minimize disk usage, and that seems to be one of your aims.

这篇关于从Anaconda缩小为Miniconda的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆