试图运行使用pyaudio的
python应用程序.使用virtualenv和安装正在运行.但是在运行时无法找到portaudio.但_portaudio.so文件存在.有什么建议???
(venv) kidkic@pi-mirror1:~/audio $jasper/jasper.py
Could not import the PyAudio C module '_portaudio'.
Traceback (most recent call last):
File "jasper/jasper.py", line 31, in
from client.mic import Mic
File "/home/kidkic/audio/jasper/client/mic.py", line 9, in
import pyaudio
File "/home/kidkic/audio/venv/local/lib/python2.7/site-packages/pyaudio.py", line 116, in
import _portaudio as pa
ImportError: /home/kidkic/audio/venv/local/lib/python2.7/site-packages/_portaudio.so: undefined symbol: Pa_GetStreamReadAvailable
# CHECKING THAT THE FILE EXISTS (a binary file)
(venv) kidkic@pi-mirror1:~/audio $ls venv/local/lib/python2.7/site-packages/_*
venv/local/lib/python2.7/site-packages/_portaudio.so