2016年1月9日 星期六

[python] SpeechRecognition Reason: image not found 解決方案


使用 python  SpeechRecognition 出現  Reason: image not found


dyld: Library not loaded: /usr/local/Cellar/flac/1.3.1/lib/libFLAC.8.dylib
  Referenced from: /usr/local/lib/python2.7/site-packages/speech_recognition/flac-mac
  Reason: image not found

少裝了 flac ,使用 brew 安裝

$ brew install flac
==> Downloading https://homebrew.bintray.com/bottles/flac-1.3.1.el_capitan.bottle.tar.gz
######################################################################## 100.0%
==> Pouring flac-1.3.1.el_capitan.bottle.tar.gz

🍺  /usr/local/Cellar/flac/1.3.1: 50 files, 2.3M

SpeechRecognition 3.1.3 : Python Package Index
https://pypi.python.org/pypi/SpeechRecognition/

1 則留言: