问题描述
当我尝试 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 (将#修改为@)