Pocketsphinx 安装错误:模块“numpy”没有属性“get_include” - raspbian“bullseye”

问题描述 投票:0回答:1

我在 Debian 11 - Bullseye 上的树莓派上使用 pip 安装 pocketsphinx,但它崩溃了。 命令:

pip install pocketsphinx

还有:

pip3 install pocketsphinx

全都是错误:

ERROR: Command errored out with exit status 1
AtributeError: module 'numpy' has no attribute 'get_include'
------------------------------------------------------------------------------------------------
ERROR: Failed building wheel for pocketsphinx
Failed to build pocketsphinx
ERROR: Could not build wheels for pocketsphinx which use PEP 517 and cannot be installed directly.

是的,它与 pip3 相同。

我只想为我的项目安装 pocketsphinx。有人帮忙吗?

debian raspberry-pi3 raspbian pocketsphinx
1个回答
0
投票

什么对我有用:

sudo pip install numpy --upgrade

“get_include”仅在 numpy 的 ~V1.21 中添加,更新到(当前)最新的 1.26.3 修复了该问题。

我新安装的 Raspbian Lite (2023-12-05) 在更新之前安装了版本 1.19.5。

© www.soinside.com 2019 - 2024. All rights reserved.