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
相关推荐
萧鼎1 小时前
深度探索 Py2neo:用 Python 玩转图数据库 Neo4j
数据库·python·neo4j
华子w9089258592 小时前
基于 Python Django 和 Spark 的电力能耗数据分析系统设计与实现7000字论文实现
python·spark·django
Rockson2 小时前
使用Ruby接入实时行情API教程
javascript·python
Tipriest_3 小时前
Python关键字梳理
python·关键字·keyword
im_AMBER4 小时前
学习日志05 python
python·学习
大虫小呓5 小时前
Python 处理 Excel 数据 pandas 和 openpyxl 哪家强?
python·pandas
哪 吒5 小时前
2025B卷 - 华为OD机试七日集训第5期 - 按算法分类,由易到难,循序渐进,玩转OD(Python/JS/C/C++)
python·算法·华为od·华为od机试·2025b卷
小眼睛FPGA5 小时前
【RK3568+PG2L50H开发板实验例程】FPGA部分/紫光同创 IP core 的使用及添加
科技·嵌入式硬件·ai·fpga开发·gpu算力
摸爬滚打李上进6 小时前
重生学AI第十六集:线性层nn.Linear
人工智能·pytorch·python·神经网络·机器学习
凛铄linshuo7 小时前
爬虫简单实操2——以贴吧为例爬取“某吧”前10页的网页代码
爬虫·python·学习