我正在托管一个python flask服务,该服务使用soundfile库进行音频计算。它在本地运行良好,但是当我在redhat上托管它时,我看到以下问题。有什么建议么 -
from soundfile import read
File "/apollo/env/AQTAudioPoProService/lib/python3.4/site-packages/soundfile.py", line 265, in <module>
_snd = _ffi.dlopen('sndfile')
File "/apollo/env/AQTAudioPoProService/lib/python3.4/site-packages/cffi/api.py", line 139, in dlopen
lib, function_cache = _make_ffi_library(self, name, flags)
File "/apollo/env/AQTAudioPoProService/lib/python3.4/site-packages/cffi/api.py", line 769, in _make_ffi_library
backendlib = _load_backend_lib(backend, libname, flags)
File "/apollo/env/AQTAudioPoProService/lib/python3.4/site-packages/cffi/api.py", line 757, in _load_backend_lib
raise OSError("library not found: %r" % (name,))
OSError: library not found: 'sndfile'
尝试安装libsndfile
[dshanm@aqts-popro-1a-05885815] var/output/logs% sudo yum install libsndfile
Loaded plugins: priorities, security
Setting up Install Process
No package libsndfile available.
Error: Nothing to do
声音文件Python模块取决于本libsndfile机库。您需要在操作系统上安装它:
$ yum install libsndfile
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。