如何使用Conda下载完整的软件包依赖关系链?
我有一个需求文件,描述了我需要的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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请在
同时,要么尝试创建一个新的环境,然后使用
- 仅下载
标志,并通过激活该环境。另外,此答案显示了如何下载完整求解的原始软件包,忽略了任何现有的软件包缓存。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.