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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南