标题: Python Poetry fails to add openai-whisper due to triton installation e [打印本页] 作者: 络腮胡菲菲 时间: 2024-9-7 20:21 标题: Python Poetry fails to add openai-whisper due to triton installation e 题意: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` 下令,但出现了这个错误。
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}")
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 添加这个包: