Creating conda environment using only symbolic links(仅使用符号链接创建 conda 环境)
问题描述
我想创建一个与我的 root
环境完全相同的环境,但不制作任何包的硬拷贝(稍后我将添加一些不在 Anaconda 中的包).我认为我可以使用以下方法之一来做到这一点:
I want to create an environment which is an exact copy of my root
environment, but not making any hard copies of packages (later I will add a few packages not in Anaconda). I thought I could do this with one of the following:
conda create -n newroot --clone root
conda create -n newroot --copy root
conda create -n newroot anaconda
但是所有这些下载包.如何创建当前 Anaconda 发行版的精确副本环境?(我知道以后我可以使用 conda install -n newroot <package name>
添加包)
But all of these download packages. How do I create an exact replica environment of the current Anaconda distribution? (I know later I can add packages with conda install -n newroot <package name>
)
推荐答案
conda
尽可能(几乎总是)在内部使用硬链接,因此新环境的成本最低,所以我的建议是使用:
conda
uses hardlinks internally when it can (nearly always) so the cost of new environments is minimal, so my recommendation is to use:
conda create -n newroot --clone root
不要使用 --copy
,因为这会明确避免使用硬链接.
Do not use --copy
since that explicitly avoids using hardlinks.
这篇关于仅使用符号链接创建 conda 环境的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:仅使用符号链接创建 conda 环境


- padding='same' 转换为 PyTorch padding=# 2022-01-01
- 沿轴计算直方图 2022-01-01
- python check_output 失败,退出状态为 1,但 Popen 适用于相同的命令 2022-01-01
- 如何在 Python 的元组列表中对每个元组中的第一个值求和? 2022-01-01
- pytorch 中的自适应池是如何工作的? 2022-07-12
- 如何在 python3 中将 OrderedDict 转换为常规字典 2022-01-01
- 使用Heroku上托管的Selenium登录Instagram时,找不到元素';用户名'; 2022-01-01
- 分析异常:路径不存在:dbfs:/databricks/python/lib/python3.7/site-packages/sampleFolder/data; 2022-01-01
- python-m http.server 443--使用SSL? 2022-01-01
- 如何将一个类的函数分成多个文件? 2022-01-01