[index-tts]环境配置完之后运行webui报错

2025-10-28 186 views
7

`PS E:\index-tts-main> uv run tools/gpu_check.py Scanning for PyTorch hardware acceleration devices...

PyTorch: NVIDIA CUDA / AMD ROCm is available!

  • Number of CUDA devices found: 2
  • Device 0: "NVIDIA GeForce RTX 5060 Ti"
  • Device 1: "NVIDIA GeForce RTX 5060 Ti" PyTorch: No devices found for Intel XPU backend. PyTorch: No devices found for Apple MPS backend.

Hardware acceleration detected. Your system is ready!`

`PS E:\index-tts-main> uv tool list gradio v5.46.0

  • gradio
  • upload_theme modelscope v1.30.0
  • modelscope`

PS E:\index-tts-main> uv run .\webui.py Traceback (most recent call last): File "E:\index-tts-main\webui.py", line 50, in <module> import gradio as gr ModuleNotFoundError: No module named 'gradio'

不知道是什么原因

回答

7

后续用 uv add gradio 解决了