You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用Poetry迁移whisper-diarization项目时,安装youtokentome遇Cython依赖报错的问题求助

Poetry迁移whisper-diarization项目时,安装youtokentome遇Cython依赖报错的问题求助

各位大佬好,我最近在尝试用Poetry迁移一个基于whisper-diarization的项目,原本过程都很顺畅,直到我添加了nemo_toolkit[asr]==1.20.0这个依赖项——它依赖的youtokentome(不得不说这名字起得挺有意思)给我整出了麻烦。

安装时抛出了如下错误:

File "/tmp/tmpexmdke23/.venv/lib/python3.10/site-packages/setuptools/build_meta.py", line 507, in run_setup
    super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script)
File "/tmp/tmpexmdke23/.venv/lib/python3.10/site-packages/setuptools/build_meta.py", line 341, in run_setup
    exec(code, locals())
File "<string>", line 5, in <module>
ModuleNotFoundError: No module named 'Cython'

我尝试把cython加到了项目依赖里,而且进入poetry shell后执行cython命令是正常的,说明Cython已经可用,但安装过程还是报错。我还把cython加到了build-system的requires列表里,问题依然没有解决。

目前我的pyproject.toml相关配置如下:

[tool.poetry.dependencies]
python = "^3.10"
faster-whisper = "0.9.0"
wget = "^3.2"
transformers = ">=4.26.1"
whisperx = {git = "https://github.com/m-bain/whisperX.git", rev = "49e0130e4e0c0d99d60715d76e65a71826a97109"}
deepmultilingualpunctuation = "^1.0.1"
cython = "^3.0.5"

[build-system]
requires = ["poetry-core", "cython"]
build-backend = "poetry.core.masonry.api"

有没有大佬遇到过类似的问题?求指点怎么解决这个Cython找不到的问题!

备注:内容来源于stack exchange,提问作者Rob Audenaerde

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.21 08:12:59