添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
深沉的电脑桌  ·  Excel ...·  1小时前    · 
文质彬彬的海豚  ·  LocaleContextHolder.ge ...·  5 小时前    · 
活泼的砖头  ·  Python - Tkinter ...·  7 小时前    · 
爱跑步的柳树  ·  python tkinter ...·  7 小时前    · 
英俊的铁板烧  ·  Boomi User Community·  3 周前    · 
年轻有为的开水瓶  ·  AttributeError: ...·  2 月前    · 
I'm running Raspbian Jessie on Raspberry Pi 2.
Installed pyaudio with: pip install pyaudio
Also using virtualenv for python
When import pyaudio I get the error Could not import the PyAudio C module '_portaudio'. However when checking the location the _portaudio.so file exists.

Code: Select all

(venv) kidkic@pi-mirror1:~/audio/portaudio $ python
Python 2.7.9 (default, Mar  8 2015, 00:52:26) 
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyaudio
Could not import the PyAudio C module '_portaudio'.
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/kidkic/audio/venv/local/lib/python2.7/site-packages/pyaudio.py", line 116, in <module>
    import _portaudio as pa
ImportError: /home/kidkic/audio/venv/local/lib/python2.7/site-packages/_portaudio.so: undefined symbol: Pa_GetStreamReadAvailable
Issue is that the wrong version of portaudio is installed.
Check this stackoverflow for solution
http://stackoverflow.com/questions/3668 ... portaudio/