如何使用Conda下载完整的软件包依赖关系链?

发布于 2025-01-26 09:24:30 字数 512 浏览 1 评论 0原文

我有一个需求文件,描述了我需要的conda软件包。这些是我要运行的脚本中所需的依赖项。该脚本需要在未连接到网络或Internet的机器上运行。因此,我决定使用download-nly,如说明在这里

这对我不起作用。当我只选择一个依赖项下载时,我会出现错误。这是我的命令行语句:

conda install-download-folly grpcio = 1.35.0

这是我收到的错误:

condaexitzero:准备的软件包缓存。 UninklinkTransaction 取消 - 仅下载选项

仅下载是在这种情况下可以帮助我取消下载。...这不是我想要的。我想下载完整的依赖关系链,以便在离线环境中使用它。

我该怎么做?

I have a requirements file that describes the conda packages I need. These are required dependencies in a script I want to run. The script needs to run on a machine that is not connected to a network or internet. Therefore, I have decided to use download-only as explained here.

This is not working for me. When I choose just one dependency to download, I get an error. This is my command-line statement:

conda install --download-only grpcio=1.35.0

This is the error I get:

CondaExitZero: Package caches prepared. UnlinkLinkTransaction
cancelled with --download-only option

Apparently, the download-only is in this cases helps me to cancel the download.... That is not what I want. I want to download the full dependency chain in order to use it in an offline environment.

How do I do that?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

離人涙 2025-02-02 09:24:30

请在

同时,要么尝试创建一个新的环境,然后使用- 仅下载标志,并通过激活该环境。另外,此答案显示了如何下载完整求解的原始软件包,忽略了任何现有的软件包缓存。

Please file a bug report on the Conda repository, since this appears that it shouldn't be happening. I suspect the issue is that for download-only transactions, Conda still determines that a package might need to be removed in order to eventually install the requested package. That shouldn't be necessary, so I'd call that a bug.

In the meantime, either try creating a new environment and then using the --download-only flag with that environment activated. Alternatively, this answer shows how to download raw packages for a full solve, ignoring any existing package cache.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文