【问题标题】:OSError: cannot load library soundfile errorOSError:无法加载库声音文件错误
【发布时间】:2022-08-05 18:24:24
【问题描述】:

我使用 m1 mac,当我想用​​声音文件库做某事时,它会给出

Traceback (most recent call last):
  File \"/Users/yusufemiralakus/PycharmProjects/pythonProject/venv/lib/python3.10/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 occurred:

Traceback (most recent call last):
  File \"/Users/yusufemiralakus/PycharmProjects/pythonProject/main.py\", line 5, in <module>
    import soundfile
  File \"/Users/yusufemiralakus/PycharmProjects/pythonProject/venv/lib/python3.10/site-packages/soundfile.py\", line 162, in <module>
    _snd = _ffi.dlopen(_os.path.join(
OSError: cannot load library \'/Users/yusufemiralakus/PycharmProjects/pythonProject/venv/lib/python3.10/site-packages/_soundfile_data/libsndfile.dylib\': dlopen(/Users/yusufemiralakus/PycharmProjects/pythonProject/venv/lib/python3.10/site-packages/_soundfile_data/libsndfile.dylib, 0x0002): tried: \'/Users/yusufemiralakus/PycharmProjects/pythonProject/venv/lib/python3.10/site-packages/_soundfile_data/libsndfile.dylib\' (no such file)

我尝试再次卸载并安装该库,但没有成功

标签: python apple-m1 soundfile


【解决方案1】:

我也有这个问题,你解决了吗?

【讨论】:

猜你喜欢
  • 2021-08-23
  • 2020-12-06
  • 1970-01-01
  • 1970-01-01
  • 2017-09-12
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2015-05-03
相关资源
最近更新 更多