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

32位Windows系统下安装scipy与speechmatics-python库失败求助

解决32位Windows 10下speechmatics-python新版本依赖scipy的安装问题

核心问题是Meson构建系统找不到32位可用编译器,导致scipy安装失败,进而无法安装新版speechmatics-python。以下是针对性解决步骤:

方案1:安装Visual Studio Build Tools(官方推荐)

  • 下载Visual Studio Build Tools,安装时勾选「Desktop development with C++」,并确保选中以下组件:
    • MSVC v143 - VS 2022 C++ x86/x64 build tools(必须包含x86工具链)
    • Windows 10 SDK(匹配你的系统版本)
  • 安装完成后,打开x86 Native Tools Command Prompt for VS 2022(32位专属编译环境),在该窗口执行:
    pip install scipy
    pip install --upgrade speechmatics-python
    

方案2:使用MinGW-w64 32位编译器

  • 下载MinGW-w64的i686架构版本(选择posix线程模型+seh异常处理),安装到无中文空格的路径(如C:\mingw-w64\i686-8.1.0-posix-seh-rt_v6-rev0)
  • 将MinGW的bin目录(如C:\mingw-w64\i686-8.1.0-posix-seh-rt_v6-rev0\bin)添加到系统PATH环境变量最前端
  • 打开命令提示符,执行gcc --version确认输出为32位gcc信息
  • 创建native.ini文件,内容如下:
    [binaries]
    c = 'gcc'
    cpp = 'g++'
    
  • 执行以下命令安装:
    pip install scipy --config-settings meson.setup-args=--native-file=native.ini
    pip install --upgrade speechmatics-python
    

方案3:使用预编译scipy包(快速替代)

  • 找到对应你Python版本的32位scipy预编译.whl文件(注意选择可信来源)
  • 执行本地安装:
    pip install path/to/your/scipy.whl
    pip install --upgrade speechmatics-python
    

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.06.14 15:54:58