[index-tts]colab 下uv同步安装报错,遇到相同的问题不?

2025-11-03 211 views
3

Failed to build deepspeed==0.17.1 ├─▶ The build backend returned an error ╰─▶ Call to setuptools.build_meta:__legacy__.build_wheel failed (exit status: 1) [stderr] Traceback (most recent call last): File "", line 8, in ModuleNotFoundError: No module named 'setuptools'

回答

5

uv pip install setuptools

不过deepspeed是强依赖pytorch跟cuda的 这两个版本一定要装对 2.8.0+cu128

建议用已经编译好的wheel安装deepspeed,自己用uv安装会碰到各种问题 https://github.com/index-tts/index-tts/issues/283#issuecomment-3267685971

1

uv pip install setuptools

不过deepspeed是强依赖pytorch跟cuda的 这两个版本一定要装对 2.8.0+cu128

建议用已经编译好的wheel安装deepspeed,自己用uv安装会碰到各种问题 https://github.com/index-tts/index-tts/issues/283#issuecomment-3267685971 好像是py版本问题,uv venv --python 3.10 .venv 就好了

3

你好 @imjamespond。

您的消息非常奇怪。setuptools它已经是 index-tts 的一部分了。请参阅uv.lock

[[package]]
name = "setuptools"
version = "80.9.0"
source = { registry = "https://pypi.org/simple" }
sdist = { url = "https://files.pythonhosted.org/packages/18/5d/3bf57dcd21979b887f014ea83c24ae194cfcd12b9e0fda66b957c69d1fca/setuptools-80.9.0.tar.gz", hash = "sha256:f36b47402ecde768dbfafc46e8e4207b4360c654f1f3bb84475f0a28628fb19c", size = 1319958, upload-time = "2025-05-27T00:56:51.443Z" }
wheels = [
    { url = "https://files.pythonhosted.org/packages/a3/dc/17031897dae0efacfea57dfd3a82fdd2a2aeb58e0ff71b77b87e44edc772/setuptools-80.9.0-py3-none-any.whl", hash = "sha256:062d34222ad13e0cc312a4c02d73f059e86a4acbfbdea8f8f76b28c99f306922", size = 1201486, upload-time = "2025-05-27T00:56:49.664Z" },
]

请确保您拥有最新版本的 index-tts 代码库,然后uv sync重试。无需uv pip install ...其他操作,因为所有依赖项都已通过“uv”包含在内。

已经有人成功在 Windows 系统上安装了该软件。但 Windows平台对于人工智能工作来说一直比较困难,所以 wangfeng 建议安装二进制的 deepspeed 软件包也可能有用——如果最新的 indexttsuv sync对你不起作用的话。

祝你早日成功!:)

0

DeepSpeed软件包现已改为可选依赖项。安装文档也已更新。

您可以通过运行以下同步命令来安装 IndexTTS,而无需使用 DeepSpeed:

uv sync --extra webui

这样可以访问网页界面,但跳过了 DeepSpeed 的安装步骤。这对 Windows 用户来说很有用,因为 DeepSpeed 在 Windows 平台上的安装最为复杂。在 Linux 系统上,似乎对所有用户都有效。

但 DeepSpeed 通常比普通推理慢,所以您不必担心错过它。请参阅这些 RTX 3090 和 5090 的基准测试:https://github.com/index-tts/index-tts/issues/326#issuecomment-3321924827