python3安装pyaudio

0 0 python pyaudio C linux raspberry-pi
满庭枫ツ
满庭枫ツ

声望值:172 0人

2019-02-01 15:23:21 提问

关注 0关注

收藏 0收藏, 522浏览

树莓派上用apt install python3-pyaudio失败,
然后用pip3和git上源码安装成功的,

import pyaudio

报错

Could not import the PyAudio C module '_portaudio'.
Traceback (most recent call last):
  File "", line 1, in 
  File "/home/pi/.local/lib/python3.5/site-packages/pyaudio.py", line 116, in 
    import _portaudio as pa
ImportError: /home/pi/.local/lib/python3.5/site-packages/_portaudio.cpython-35m-arm-linux-gnueabihf.so: undefined symbol: Pa_GetStreamReadAvailable
>>>
请先 登录 后评论

1个回答

  • ︷.゛噓.低調86声望 2018-09-25 09:28

    https://stackoverflow.com/que... 这里告诉你,需要手动源码编译一波
    请先 登录 后评论

注册新账号

悬赏追问
10
  • 10
  • 20
  • 50
  • 100
  • 200
  • 输入数值
发布追问