尝试运行使用pyaudio的Python应用程序。已安装virtualenv并且安装工作正常。但是在运行时找不到portaudio。但是 _portaudio.so文件存在。有什么建议吗?
尝试运行使用 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 <module>
from client.mic import Mic
File "/home/kidkic/audio/jasper/client/mic.py", line 9, in <module>
import pyaudio
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
# 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