Python Poetry fails to add openai-whisper due to triton installation error

题意:Python Poetry 因 Triton 安装错误而无法添加 openai-whisper。

问题背景:

so im trying to use openai-whisper. i'm using poetry as my env and dependecy manager. but keep getting errors when trying to download it. the error i get is, Installing triton (2.0.0): Failed

i tried the typical poetry add and this is the error

所以我正在尝试使用 openai-whisper。我使用 Poetry 作为我的环境和依赖管理器,但在尝试下载时不断出现错误。遇到的错误是:安装 triton (2.0.0) 失败。

我尝试了常规的 `poetry add` 命令,但出现了这个错误。

python 复制代码
poetry add openai-whisper 
Using version ^20230314 for openai-whisper

  • Installing triton (2.0.0): Failed

  RuntimeError

  Unable to find installation candidates for triton (2.0.0)

  at /usr/local/Cellar/poetry/1.4.2/libexec/lib/python3.11/site-packages/poetry/installation/chooser.py:109 in choose_for
      105│ 
      106│             links.append(link)
      107│ 
      108│         if not links:
    → 109│             raise RuntimeError(f"Unable to find installation candidates for {package}")
      110│ 
      111│         # Get the best link
      112│         chosen = max(links, key=lambda link: self._sort_key(package, link))

问题解决:

I've found a way to make this work (even for Windows). You could add the package with poetry using the git repo of whisper:

我找到了一种方法可以使其工作(即使在 Windows 上也可以)。你可以使用 whisper 的 Git 仓库通过 Poetry 添加这个包:

python 复制代码
poetry add git+https://github.com/openai/whisper.git
相关推荐
TsingtaoAI1 分钟前
3D高斯泼溅技术发展及其在具身智能领域的应用综述
人工智能·算法·ai·具身智能·高斯泼溅
兜客互动24 分钟前
2026年AI关键词拓展挖掘软件,高效助力内容创作精准获流
人工智能·python
weixin_5386019726 分钟前
智能体测开Day30pytest测试框架
python
MC皮蛋侠客28 分钟前
uv 系列(七):CI/CD、Docker 与私有索引——生产级交付
python·ci/cd·docker·uv
邪神与厨二病40 分钟前
牛客周赛 Round 153
python·算法
yaoxin5211231 小时前
470. Java 反射 - Member 接口与 AccessFlag
java·开发语言·python
groundhappy1 小时前
idalib安装和codex ida-mcp配置
linux·开发语言·python
汤姆yu1 小时前
CodeGeeX 4完整安装与实操使用全指南
人工智能·windows·ai·智能体·视频模型
人间凡尔赛2 小时前
2026 AI Agent 多智能体协同编程实战指南:从 Kimi K3 到 GPT-5.6 深度解析
ai·agent·多智能体·编程实战·waic·gpt-5.6·kimik3
培之2 小时前
RTX 5090 安装 pytorch3d
人工智能·pytorch·python