#4123 /Users/x/Documents/pyvideotrans/.venv/lib/python3.10/site-packages/zhconv/zhconv.py:33: UserWarning: pkg_resources is de

61.111* Posted at: 3 hours ago 👁10

/Users/x/Documents/pyvideotrans/.venv/lib/python3.10/site-packages/zhconv/zhconv.py:33: UserWarning: pkg_resources is deprecated as an API. See (链接替代,不然发不出问答). The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools

1 Replies

这些警告信息是正常的,不会影响软件功能。

第一行警告是关于 zhconv 库使用了即将被弃用的 pkg_resources API,这是第三方库的兼容性问题,不影响 pyVideoTrans 的核心运行。

第二行警告是因为你在 CPU 模式下运行 Whisper 模型,而 CPU 不支持 FP16 浮点运算,因此自动回退到 FP32。这会导致处理速度变慢,但不会影响识别结果。

解决方案

  1. 这些警告可以忽略,软件会继续正常工作。
  2. 如果你想提升语音识别速度,建议为你的 Mac 配置 GPU 加速(如果支持)。对于 macOS,可以尝试配置 MPS(Metal Performance Shaders)后端以利用 Apple Silicon(M1/M2/M3)的 GPU 能力。这通常需要在源码部署时进行特定配置。
  3. 如果速度可以接受,无需任何操作。

请查阅相关文档:

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