如何解决无法导入声音文件 (mac)
当我尝试 import soundfile
时出现错误。
我尝试通过 pip 重新安装声音文件,但没有成功。
这是我得到的错误。
Traceback (most recent call last):
File "/Users/kona/.pyenv/versions/3.9.5/lib/python3.9/site-packages/soundfile.py",line 142,in <module>
raise OSError('sndfile library not found')
OSError: sndfile library not found
During handling of the above exception,another exception occured:
Traceback (most recent call last):
File "<stdin>",line 1,in <module>
File "/Users/kona/.pyenv/versions/3.9.5/lib/python3.9/site-packages/soundfile.py",line 162,in <module>
_snd = _ffi.dlopen(_os.path.join(
OSError: cannot load library '/Users/kona/.pyenv/versions/3.9.5/lib/python3.9/site-packages/_soundfile_data/libsndfile.dylib': dlopen(/Users/kona/.pyenv/versions/3.9.5/lib/python3.9/site-packages/_soundfile_data/libsndfile.dylib,2): image not found
当我执行 mdfind _soundfile_data
和 mdfind libsndfile.dylib
时,它没有给我任何结果。
此外,当我执行 brew install libsndfile
时,它告诉我它是 already installed and up-to-date
。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。