problem in installing library in sagemaker studio notebook

0

I have a problem while installing librosa this error message comes:

OSError: cannot load library 'libsndfile.so': libsndfile.so: cannot open shared object file: No such file or directory

I tried many solutions and didn't work, please help

質問済み 1年前271ビュー
1回答
0

Hello, I had this error when I was trying to install the library ffmpeg, This is the process I followed:

On notebook terminal run the following commands:

$ sudo yum install -y gcc
$ 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 —prefix=/usr \
    --disable-static \
    --docdir=/usr/share/doc/libsndfile-1.0.31 && make
$ sudo make install
$ pip install sndfile

Then go ahead and install librosa but However you may want to setup a new environment with the librosa package preinstalled to it.

$ conda create --no-default-packages -n name_of_env python librosa
$ python -m ipykernel install --user --name=name_of_env

Once completed you may create a new notebook and use this new environment.

AWS
サポートエンジニア
回答済み 1年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ