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

如何解决Python 3.11下llvmlite与numba的安装报错问题?

解决Python3.11+环境下Poetry安装openai-whisper的llvmlite依赖问题

方案1:手动安装适配Python版本的llvmlite预编译包

  • 针对Windows平台,选择与你的Python版本(3.11/3.12)和系统架构匹配的llvmlite预编译wheel包,直接用pip安装:
    # 示例:Python3.11安装llvmlite 0.41.0
    pip install llvmlite==0.41.0 --only-binary :all:
    
    注意:llvmlite 0.41.0及以上版本支持Python3.11,Python3.12需选择0.43.0及以上的适配包,确保wheel文件名中的Python版本标识(如cp311、cp312)和系统架构(win_amd64)与你的环境完全匹配
  • 完成后再执行Poetry安装命令:
    poetry add openai-whisper
    

方案2:切换Poetry安装器以绕过PEP517构建限制

  • 修改Poetry配置,启用旧版安装器:
    poetry config experimental.new-installer false
    
  • 重新执行openai-whisper安装:
    poetry add openai-whisper
    

方案3:借助conda管理兼容的llvmlite依赖

  • 先通过conda安装适配的llvmlite版本:
    conda install -c conda-forge llvmlite>=0.41.0
    
  • 再在Poetry环境中安装openai-whisper:
    poetry add openai-whisper
    

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.06.16 13:51:03