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
相关推荐
网安詹姆斯27 分钟前
网络安全(黑客技术)2024年三个月自学计划
网络·数据结构·python·mysql·安全·web安全·github
宇宙第一小趴菜32 分钟前
中秋节特别游戏:给玉兔投喂月饼
python·游戏·pygame·中秋节
William数据分析36 分钟前
[Python数据可视化] Plotly:交互式数据可视化的强大工具
python·数据分析·数据可视化
Python大数据分析@43 分钟前
Python中给定一个数组a = [2,3,9,1,0],找出其中最大的一个数,并打印出来 求解?
python·算法·排序算法
吉小雨1 小时前
FlagEmbedding
python
MessiGo1 小时前
Python 入门教程(3)基础知识 | 3.3、标识符
java·开发语言·python
akhfuiigabv1 小时前
探索LangChain中的最新NLP研究:创新与应用
人工智能·python·自然语言处理·langchain
网络研究院1 小时前
解码 OpenAI 的 o1 系列大型语言模型
人工智能·语言模型·自然语言处理·openai·技术·推理·能力
哆啦叮当1 小时前
Linux下root用户共享conda环境给其他用户
linux·运维·服务器·python·conda
你可以自己看2 小时前
python中Web开发框架的使用
数据库·python·sqlite