#2964 'sox' is not recognized as an internal or external command,operable program or batch file.SoX could not be found!If you

205.198* Posted at: 19 days ago 👁135

'sox' is not recognized as an internal or external command,
operable program or batch file.
SoX could not be found!

If you do not have SoX, proceed here:
 - - - http://sox.sourceforge.net/ - - -

If you do (or think that you should) have SoX, double-check your
path variables.

Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "F:\QWEN3TTS-win-0124\runtime\Lib\site-packages\qwen_tts\cli\demo.py", line 26, in

import gradio as gr

File "F:\QWEN3TTS-win-0124\runtime\Lib\site-packages\gradio\__init__.py", line 3, in

import gradio._simple_templates

File "F:\QWEN3TTS-win-0124\runtime\Lib\site-packages\gradio\_simple_templates\__init__.py", line 1, in

from .simpledropdown import SimpleDropdown

File "F:\QWEN3TTS-win-0124\runtime\Lib\site-packages\gradio\_simple_templates\simpledropdown.py", line 7, in

from gradio.components.base import Component, FormComponent

File "F:\QWEN3TTS-win-0124\runtime\Lib\site-packages\gradio\components\__init__.py", line 22, in

from gradio.components.datetime import DateTime

File "F:\QWEN3TTS-win-0124\runtime\Lib\site-packages\gradio\components\datetime.py", line 9, in

import pytz

ModuleNotFoundError: No module named 'pytz'

1 Replies

这是由于运行 Qwen-TTS 时缺少 SoX 音频处理工具和 Python 的 pytz 模块导致的。

  1. 安装 SoX

    • 访问 SoX 官网 (http://sox.sourceforge.net/) 下载 Windows 版本并安装。
    • 安装后,将 SoX 的安装目录(例如 C:\Program Files (x86)\sox-14-4-2)添加到系统的 PATH 环境变量中。
    • 添加完成后,重新打开命令提示符,输入 sox --version 验证是否安装成功。
  2. 安装缺失的 Python 模块

    • 打开命令提示符,导航到你的 Qwen-TTS 环境目录(例如 F:\QWEN3TTS-win-0124\runtime\Scripts)。
    • 运行命令 pip install pytz 来安装缺失的模块。

完成以上两步后,重新启动 Qwen-TTS 服务即可。

请查阅相关文档:

Post Your Reply
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Related resource