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
相关产品推荐
相关产品推荐

