You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

已安装openai-whisper却提示ModuleNotFoundError: No module named 'openai_whisper'求助

解决ModuleNotFoundError: No module named 'openai_whisper'问题
  • 核心错误点:你安装的包是openai-whisper,但导入时的正确模块名是whisper,而非openai_whisper。修改代码导入语句为:

    import whisper
    
  • 验证安装与环境匹配:

    1. 执行pip show openai-whisper,确认输出包含Location字段,记录包的安装路径。
    2. 执行python -c "import sys; print(sys.path)",检查上述安装路径是否在输出的路径列表中。若不在,说明当前Python解释器未识别到该包。
    3. 确认运行代码的Python解释器与执行pip install的解释器一致:分别执行which python(Linux/macOS)或where python(Windows)、which pip/where pip,对比路径是否匹配。若使用虚拟环境,需确保已激活对应环境再操作。
  • 重装修复方案:
    先卸载现有包:

    pip uninstall -y openai-whisper
    

    重新安装:

    pip install openai-whisper
    

内容的提问来源于stack exchange,提问作者YasserKhalil

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.20 19:37:02