解决“OSError: cannot load library ‘libsndfile.so‘ ”问题

问题描述

在安装完librosa之后,运行程序报错“OSError: cannot load library 'libsndfile.so': libsndfile.so: cannot open shared object file: No such file or directory”

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/soundfile.py", line 151, in 
    raise OSError('sndfile library not found')
OSError: sndfile library not found

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/soundfile.py", line 178, in 
    _snd = _ffi.dlopen(_os.path.join(_path, '_soundfile_data', _packaged_libname))
OSError: cannot load library '/usr/local/lib/python3.6/dist-packages/_soundfile_data/libsndfile.so': /usr/local/lib/python3.6/dist-packages/_soundfile_data/libsndfile.so: cannot open shared object file: No such file or directory

During handlin

你可能感兴趣的:(Python,debug,踩坑记录,python,人工智能,深度学习)