无法在 SageMaker Jupyter 笔记本实例上导入 librosa“OSError:未找到 sndfile 库”

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

我正在尝试在 SageMaker 笔记本实例上导入 librosa,但它告诉我找不到 sndfile 库。我尝试过 conda install -c conda-forge libsndfile 但它不起作用。我已经被困在这个问题上将近3个小时了。希望得到一些帮助。谢谢你。

更新(正在运行): 这就是最终的工作..我们必须使用以下命令从头开始编译 libsndfile

%%bash
wget 'https://github.com/libsndfile/libsndfile/releases/download/1.0.31/libsndfile-1.0.31.tar.bz2'
tar -xf libsndfile-1.0.31.tar.bz2
cd libsndfile-1.0.31/
./configure
make
sudo make install
python python-3.x amazon-web-services amazon-sagemaker librosa
2个回答
0
投票

更新(现在正在运行):这就是最终的工作。我们必须使用以下命令从头开始编译 libsndfile

%%bash
wget 'https://github.com/libsndfile/libsndfile/releases/download/1.0.31/libsndfile-1.0.31.tar.bz2'
tar -xf libsndfile-1.0.31.tar.bz2
cd libsndfile-1.0.31/
./configure
make
sudo make install

0
投票

我也陷入同样的问题。请帮助我!

我按照您的步骤安装了 libsndfile 但此代码返回如下错误“from Seamless_communication.models.inference.translator import Translator”

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