在树莓派pi3上安装librosa

时间:2018-11-06 14:55:38

标签: python scipy raspberry-pi3 librosa llvmlite

我目前正在尝试安装librosa,几天后试图弄清它,我现在很无助。我尝试了几种解决方案,例如running librosa & numba on raspberry pi 3 还有https://stackoverflow.com/a/52941768/10499025

pip conda 克隆git 均无法正常运行,还下载了 librosa zip 并安装了它

python setup.py install

没有解决; 我尝试使用 virtualenv

我的猜测是问题出在侧面套件中,所以我尝试单独安装侧面套件。那只能用git clone解决,我不确定我是否正确安装了它们。尽管这不能解决我的所有问题,但似乎可以解决scipy和numpy的建筑轮子问题,但llvmlite仍然无法正常工作。

此外,我还尝试了更新我的 setuptools pip 和python,还尝试了pip / pip3并尝试提及-用户。一切都没有任何效果。

我了解我需要librosa的某些版本的软件包才能正常运行,我想我的问题在于构建轮子和查找软件包的问题,​​或者至少是这些软件包的正确版本。

我最苦恼的软件包是 SCIPY,NUMPY,SCIKIT-LEARN和LLVMLITE

无论如何,我认为我很困惑自己,而不是帮助理解它。因此,正如我之前说过的,我非常感谢您的任何建议,见解等!!

所以,这是我的错误代码:

当我尝试安装librosa时,我总是得到:

与virtualenv:

sudo apt install libblas-dev llvm python3-pip python3-scipy
virtualenv --system-site-packages -p python3 env
source env/bin/activate
pip install llvmlite==0.15.0
pip install numba==0.30.1
pip install librosa

错误:

Command "/home/pi/flaskenv/bin/python -u - c "import setuptools, tokenize;__file__='/tmp/pip-install-iYvjRD/scipy/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-7L25tV/install-record.txt --single-version-externally-managed --compile --install-headers /home/pi/flaskenv/include/site/python2.7/scipy" failed with error code 1 in /tmp/pip-install-iYvjRD/scipy/

->完整错误代码:

https://docs.google.com/document/d/1dHq0S227vld4iJ7H2SgaDJ2jlD95bZUKqkUH4VhrS2U/edit?usp=sharing

没有virtualenv:

sudo pip install librosa

Failed building wheel for scipy
Failed cleaning build dir for scipy
Failed building wheel for llvmlite

错误:

`命令“ / usr / bin / python -u -c”导入设置工具,标记化; 文件 ='/ tmp / pip-build-AUlqg0 / scipy / setup.py'; f = getattr(tokenize,'open',open)(文件); code = f.read()。replace('\ r \ n','\ n'); f.close(); exec(compile(code, file ,'exec'))“ install --record /tmp/pip-44B19L-record/install-record.txt --single-version-externally-编译”失败,错误代码为1,位于/ tmp / pip-build-AUlqg0 / scipy /

` ->完整错误代码:

https://docs.google.com/document/d/1pPs6JEqeJ2uS1xWCg8d_dqsbJ6Tgh2EO-eB5aUOYU7I/edit?usp=sharing

使用 conda 安装总是会因为音频读取而失败->找不到音频读取

所以现在,我想也许我应该在librosa之前手动安装numpy和scipy,而不是使用此行来获取llvmlite和numba的正确版本

udo apt install libblas-dev llvm python3-pip python3-scipy
pip install llvmlite==0.15.0
pip install numba==0.30.1

,然后尝试安装librosa?那行得通吗?我是否错过了一些非常重要的事情? 已经感谢您阅读此哈哈!并期待任何解决方案! 萝拉

PS:我正在研究带菜鸟的raspberrypi3

0 个答案:

没有答案
相关问题