安装依赖: sudo apt-get install portaudio.dev 安装pyaudio: sudo apt-get install python3-pyaudio 测试: python import pyaudio