小编Ron*_*sch的帖子

在树莓派 3 上运行 librosa 和 numba

我正在尝试在我的 raspberry pi 3 上运行 librosa。在通过互联网搜索数小时后,我终于能够安装它,但是当我尝试导入它时仍然会引发错误。首先,我在安装依赖项时遇到了问题llvmlite。我最终使用以下代码安装了它:conda install -c numba llvmlite. 我使用带有 miniconda 的 python 3.4 构建。

安装 llvmlite 后,我可以使用pip(无法使用 conda)安装 librosa

pi@raspberrypi:~ $ pip install librosa
Collecting librosa
Using cached https://www.piwheels.hostedpi.com/simple/librosa/librosa-
0.5.1-py3-none-any.whl
Requirement already satisfied: resampy>=0.1.2 in 
./miniconda3/lib/python3.4/site-packages (from librosa)
Requirement already satisfied: scipy>=0.13.0 in 
...
Installing collected packages: librosa
Successfully installed librosa-0.5.1
Run Code Online (Sandbox Code Playgroud)

显然 librosa 已安装。

pi@raspberrypi:~ $ pip list
DEPRECATION: The default format will switch to columns in the future. 
You can use …
Run Code Online (Sandbox Code Playgroud)

python raspbian numba raspberry-pi3 librosa

4
推荐指数
1
解决办法
1万
查看次数

标签 统计

librosa ×1

numba ×1

python ×1

raspberry-pi3 ×1

raspbian ×1