Amazonギフト券チャージでお得にお買い物

Python librosa import時のエラー回避方法

1 min 1,599 views
OSError: sndfile library not found

OSError: cannot load library '/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/_soundfile_data/libsndfile.dylib': dlopen(/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/_soundfile_data/libsndfile.dylib, 0x0002): tried: '/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/_soundfile_data/libsndfile.dylib' (no such file)

python の音響分析ライブラリlibrosaをimportしてエラーとなる場合の対処方法を紹介します。
HomeBrewでの環境であれば、

brew install libsndfile

homebrewでlibsndfileをインストールすれば大丈夫です。

これ読んで勉強してますが、むずかしいよね。。。

サトシ

サトシ

Macブロガー
幼少の頃からMac中心の生活。
MacやiPhoneなどApple関連とガジェットレビュー中心に情報発信します。
あなたの身近なところをサポート

カテゴリー:
関連記事