#1174 module 'whisper' has no attribute 'load_model'

106.39* Posted at: 5 days ago 👁21

module 'whisper' has no attribute 'load_model'


=
system:macOS-26.0.1-arm64-arm-64bit
version:v3.82
frozen:False
language:zh
root_dir:/Users/mac/PycharmProjects/PythonProject/pyvideotrans
Python: 3.10.17 (main, Apr 8 2025, 12:10:59) [Clang 17.0.0 (clang-1700.0.13.3)]

1 Replies

这个错误是由于 Whisper 库版本不兼容导致的。whisper.load_model 在较新版本的 Whisper 库中已被弃用。

请按以下步骤解决:

  1. 卸载当前 Whisper 库:

    pip uninstall openai-whisper
  2. 安装兼容版本:

    pip install openai-whisper==20231117

这个特定版本与 pyVideoTrans 兼容。安装完成后,重新启动软件即可解决该问题。

如果问题依旧,请提供完整的日志文件(位于 /Users/mac/PycharmProjects/PythonProject/pyvideotrans/logs/ 目录下)。

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.

Donate: https://ko-fi.com/jianchang512

Trending Questions