You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Ubuntu 22.04.1下使用Poetry安装TensorRT-LLM时错误依赖pywin32的问题求助

Ubuntu 22.04.1下使用Poetry安装TensorRT-LLM时错误依赖pywin32的问题求助

各位好,我最近在Ubuntu 22.04.1系统上,用Poetry 1.8.4尝试安装TensorRT-LLM,执行了这个命令:

poetry add tensorrt-llm

结果安装过程中触发了错误,系统提示找不到pywin32的安装候选包——这个包明明是给Windows系统用的,我实在搞不懂为什么Poetry会在Ubuntu上试图安装它。

具体的错误日志如下:

Using version ^0.14.0 for tensorrt-llm

Updating dependencies
Resolving dependencies... (5.9s)

Package operations: 2 installs, 0 updates, 0 removals

Installing pywin32 (308): Failed
RuntimeError
Unable to find installation candidates for pywin32 (308)

at /usr/local/lib/python3.10/dist-packages/poetry/installation/chooser.py:74 in choose_for
70│
71│ links.append(link)
72│
73│ if not links:
→ 74│ raise RuntimeError(f"Unable to find installation candidates for {package}")
75│
76│ # Get the best link
77│ chosen = max(links, key=lambda link: self._sort_key(package, link))
78│

Cannot install pywin32.

我以为指定平台就能解决,又试了这个命令:

poetry add tensorrt-llm --platform linux

结果还是弹出类似的错误,依然要求安装pywin32。有没有大佬遇到过类似的情况?求指点怎么解决这个问题,让Poetry不要在Linux系统下强行依赖Windows的包。

备注:内容来源于stack exchange,提问作者Wilson

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.15 11:24:30