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
相关推荐
大鱼>3 分钟前
Scikit-learn Pipeline:构建可复用的 ML 流水线
python·机器学习·scikit-learn
闲猫6 分钟前
深入理解 Skills:从 API 调用到智能体行为封装
人工智能·python·langchain
还是鼠鼠13 分钟前
AI掘金头条新闻系统 (Toutiao News)-缓存相关推荐新闻
后端·python·mysql·fastapi·web
骑士雄师16 分钟前
大模型:runnable
python·embedding
2401_8685347823 分钟前
系统分析师案例分析题常考知识点
python·计算机网络
ZzT1 小时前
那些看不懂的 AI 味词语
aigc·openai·ai编程
江华森1 小时前
Python 实现 2048 游戏(三):面向对象重构与AI模拟
python
doiito2 小时前
Gliding Horse 时间感知系统:让 AI Agent 真正“感知“时间流逝
ai·rust·架构设计·系统设计·ai agent
小白跃升坊2 小时前
1Panel企业版+AI门户|从零构建企业专属AI门户
人工智能·ai·1panel·skills·ai运维·ai门户
可以飞的话2 小时前
五、数据处理1
python