Downsizing from Anaconda to Miniconda

后端 未结 1 1885
悲&欢浪女
悲&欢浪女 2020-12-20 02:04

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 Ana

相关标签:
1条回答
  • 2020-12-20 02:28

    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.

    It may be possible to avoid redownloading packages during the environment recreations by retaining the pkgs directory in the root of your Anaconda install, then copying its contents over into the pkgs of the Miniconda install. I would only copy folders/tarballs that don't conflict with the ones that come with Miniconda. After finishing environment recreation, then a conda clean -p would likely be in order, since Anaconda includes many packages that likely aren't getting reused.

    0 讨论(0)
提交回复
热议问题