[英]Install prebuilt packages from conda-forge (e.g. cartopy) using poetry without relying on conda (using only the channel)
I'm testing poetry
and I was wondering if it is possible to install prebuilt packages from conda-forge
, as cartopy
without relying on conda
(so keeping a 100% poetry process).我正在测试
poetry
,我想知道是否可以从conda-forge
forge 安装预构建的软件包,作为不依赖cartopy
的conda
(因此保持 100% 的诗歌过程)。 I googled this a bit but the only way I found is to install poetry within a conda
venv using pip and then installing from conda-forge
using conda
and then tweaking poetry files to make it aware of the conda venv so that the TOML is written properly.我用谷歌搜索了一下,但我发现的唯一方法是使用 pip在
conda
venv 中安装诗歌,然后使用conda
从conda-forge
forge 安装,然后调整诗歌文件以使其了解 conda venv,以便正确编写 TOML .
Packages like cartopy are a pain to install if not from a prebuilt version, if possible I'd change my conda stack to poetry stack if something like poetry add [?conda-forge?] cartopy
works如果不是从预建版本安装,像 cartopy 这样的包是很痛苦的,如果可能的话,如果像
poetry add [?conda-forge?] cartopy
作品
Thanks.谢谢。
Not currently possible.目前不可能。 Conda is a generic package manager, not just a Python package manager.
Conda 是通用的 package 管理器,而不仅仅是 Python package 管理器。 Furthermore, there is no dedicated metadata in Conda packages to discriminate whether or not they are Python packages, which I think would be a prerequisite for Poetry being able to determine whether the Conda package is even valid for installation.
此外,Conda 包中没有专门的元数据来区分它们是否是 Python 包,我认为这是 Poetry 能够确定 Conda package 是否可以安装的先决条件。 Hence, what OP requests cannot be a thing, or at least would it be a major undertaking to make it one.
因此,OP 所要求的不可能是一件事,或者至少将其作为一项重大任务。
However, others have requested similar features , so someone hopeful for such functionality could subscribe to notifications on those, or follow the Feature Roadmap .但是,其他人要求提供类似功能,因此希望获得此类功能的人可以订阅有关这些功能的通知,或遵循功能路线图。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.